site.def: Only build C/en_US locales by default for Linux
[oweals/cde.git] / cde / config / cf / Imake.rules
index 7fd4303054c54966366a7eabbe703c15e40fd0b3..42323f7480f4fa5fe09b3f7dbb49f958091f5fcb 100644 (file)
@@ -134,6 +134,7 @@ XCOMM rules:  $TOG: Imake.rules /main/227 1998/02/02 12:07:57 kaleb $
  * NormalLintTarget            (srclist)
  * LintTarget                  ()
  * LinkSourceFile              (src,dir)
+ * CopySourceFile              (src,dir)
  * LinkFile                    (tofile,fromfile)
  * MakeSubincludesForBuild     (step,dir,srclist)
  * LangNamedTargetSubdirs      (lang,name,dirs,verb,flags,subname)
@@ -154,6 +155,7 @@ XCOMM rules:  $TOG: Imake.rules /main/227 1998/02/02 12:07:57 kaleb $
  * MakeLintSubdirs             (dirs,target,subtarget)
  * LintSubdirs                 (dirs)
  * MakeLintLibSubdirs          (dirs)
+ * MakeMakeOneSubdirs          ()
  * MakeMakeSubdirs             (dirs,target)
  * MakefileSubdirs             (dirs)
  * CppScriptTarget             (dst,src,defs,deplist)
@@ -2074,6 +2076,26 @@ clean::                                                                  @@\
 #endif
 
 
+/*
+ * CopySourceFile - snag source file from some other directory
+ */
+#ifndef CopySourceFile
+#define CopySourceFile(src,dir)                                                @@\
+src:  dir/src                                                          @@\
+       RemoveFile($@)                                                  @@\
+       $(CP) $? $@                                                     @@\
+                                                                       @@\
+NoConfigRec(src)                                                       @@\
+                                                                       @@\
+includes:: src                                                         @@\
+                                                                       @@\
+depend:: src                                                           @@\
+                                                                       @@\
+clean::                                                                        @@\
+       RemoveFile(src)
+#endif
+
+
 /*
  * LinkFile - link a file
  */
@@ -2297,23 +2319,30 @@ MakeLintSubdirs(dirs,lintlib,lintlib)
 #endif /* MakeLintLibSubdirs */
 
 
+/*
+ * MakeMakeOneSubdirs - generate rules to recreate $(ONESUBDIR)/Makefile
+ * as part of the specified step in the build. This separate, explicit target
+ * exists so that clearmake will know what its goal is and do wink-in.
+ */
+#ifndef MakeMakeOneSubdirs
+#define MakeMakeOneSubdirs()                                           @@\
+$(ONESUBDIR)/Makefile:                                                 @@\
+       @MakeFlagsToShellFlags(n,executeit="no"); \                     @@\
+       cd $(ONESUBDIR); \                                              @@\
+       if [ "$$executeit" != "no" ]; then \                            @@\
+               ImakeSubCmdHelper -DTOPDIR=$(IMAKETOP) -DCURDIR=$(ONECURDIR)$(ONESUBDIR); \ @@\
+       fi;
+#endif /* MakeMakeOneSubdirs */
+
+
 /*
  * MakeMakeSubdirs - generate rules to recursively recreate Makefiles as part
  * of the specified step in the build.  If $(TOP) is set to an absolute path, 
  * do not prepend the ../ prefix.  This makes running things outside of the 
  * source tree much easier.
- * $(ONESUBDIR)/Makefile exists as a separate, explicit target so that
- * clearmake will know what its goal is and do wink-in.
  */
 #ifndef MakeMakeSubdirs
 #define MakeMakeSubdirs(dirs,target)                                   @@\
-$(ONESUBDIR)/Makefile:                                                 @@\
-       @MakeFlagsToShellFlags(n,executeit="no"); \                     @@\
-       cd $(ONESUBDIR); \                                              @@\
-       if [ "$$executeit" != "no" ]; then \                            @@\
-               ImakeSubCmdHelper -DTOPDIR=$(IMAKETOP) -DCURDIR=$(ONECURDIR)$(ONESUBDIR); \ @@\
-       fi;                                                             @@\
-                                                                       @@\
 target::                                                               @@\
        -@MakeFlagsToShellFlags(ik,set +e); \                           @@\
        MakeFlagsToShellFlags(n,executeit="no"); \                      @@\
@@ -2380,6 +2409,7 @@ target::                                                          @@\
  */
 #ifndef MakefileSubdirs
 #define MakefileSubdirs(dirs)                                          @@\
+MakeMakeOneSubdirs()                                                   @@\
 MakeMakeSubdirs(dirs,Makefiles)
 #endif /* MakefileSubdirs */