From: John Kohl Date: Fri, 26 Oct 1990 09:56:32 +0000 (+0000) Subject: add CopyHeaderNewName, make CopyHeader use it. X-Git-Tag: krb5-1.0-alpha2~78 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5f12ce94edb5e1ee84b36f80b03aa074a1c23f5;p=krb5.git 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 --- 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 */ /*