From: John Kohl Date: Thu, 25 Oct 1990 11:44:55 +0000 (+0000) Subject: need .h & .c on SUFFIXES for proper make rules X-Git-Tag: krb5-1.0-alpha2~95 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=49a0a99aab1afbeef16f1832c2f02e3bafba2478;p=krb5.git need .h & .c on SUFFIXES for proper make rules add CopyHeader directive git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1316 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/config/Project.tmpl b/src/config/Project.tmpl index ed2deb230..59a400963 100644 --- a/src/config/Project.tmpl +++ b/src/config/Project.tmpl @@ -60,7 +60,7 @@ #ifndef ErrorTableObjectRule #define ErrorTableObjectRule() @@\ -.SUFFIXES: .et @@\ +.SUFFIXES: .et .h .c @@\ @@\ .et.h: @@\ $(COMPILE_ET) $*.et @@\ @@ -117,6 +117,21 @@ libdir/lib/**/libname.a: @@\ /* The $(RANLIB) is done at the end by the directory itself */ #endif /* OtherdirLibraryTarget */ +/* + * 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 \ @@\ + echo ; \ @@\ + else \ @@\ + $(RM) hdir/hfile ; \ @@\ + $(CP) hfile hdir/hfile; \ @@\ + fi +#endif /* CopyHeader */ + /* * Default Definitions. */