add CopyHeaderNewName, make CopyHeader use it.
authorJohn Kohl <jtkohl@mit.edu>
Fri, 26 Oct 1990 09:56:32 +0000 (09:56 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 26 Oct 1990 09:56:32 +0000 (09:56 +0000)
recursive target name is includes::

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1333 dc483132-0cff-0310-8789-dd5450dbe970

src/config/Project.tmpl

index 59a400963225c091abb46035b9d344399adf4e9d..11e827615a19d0995be56a9975ebfe5b2fddecf9 100644 (file)
@@ -121,15 +121,19 @@ libdir/lib/**/libname.a:                                          @@\
  * CopyHeader - generate rule to copy a generated header file to an include
  * tree.
  */
-#ifndef CopyHeader
-#define CopyHeader(hfile,hdir)                                         @@\
-headers:: hfile                                                                @@\
-       -if cmp hfile hdir/hfile >/dev/null 2>&1; then \                @@\
+#ifndef CopyHeaderNewName
+#define CopyHeaderNewName(hfile,hdir,newname)                          @@\
+includes:: hfile                                                       @@\
+       -if cmp hfile hdir/newname >/dev/null 2>&1; then \              @@\
                echo ; \                                                @@\
        else \                                                          @@\
-               $(RM) hdir/hfile ; \                                    @@\
-               $(CP) hfile hdir/hfile; \                               @@\
+               $(RM) hdir/newname ; \                                  @@\
+               $(CP) hfile hdir/newname; \                             @@\
        fi
+#endif /* CopyHeaderNewName */
+
+#ifndef CopyHeader
+#define CopyHeader(hfile,hdir) CopyHeaderNewName(hfile,hdir,hfile)
 #endif /* CopyHeader */
 
 /*