summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-10-26 09:56:32 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-10-26 09:56:32 +0000
commitb5f12ce94edb5e1ee84b36f80b03aa074a1c23f5 (patch)
tree4d3551bb6a22bb14f7887a53e2e1ed71b1b50f8c /src
parent3e58d7dc8438b65d8bc6ebba03b03fc1d38875c4 (diff)
downloadkrb5-b5f12ce94edb5e1ee84b36f80b03aa074a1c23f5.tar.gz
krb5-b5f12ce94edb5e1ee84b36f80b03aa074a1c23f5.tar.xz
krb5-b5f12ce94edb5e1ee84b36f80b03aa074a1c23f5.zip
add CopyHeaderNewName, make CopyHeader use it.
recursive target name is includes:: git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1333 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/config/Project.tmpl16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/config/Project.tmpl b/src/config/Project.tmpl
index 59a400963..11e827615 100644
--- a/src/config/Project.tmpl
+++ b/src/config/Project.tmpl
@@ -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 */
/*