fix CopyHeader, add CopySrcHeader
authorMark Eichin <eichin@mit.edu>
Wed, 15 Jun 1994 15:30:25 +0000 (15:30 +0000)
committerMark Eichin <eichin@mit.edu>
Wed, 15 Jun 1994 15:30:25 +0000 (15:30 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3801 dc483132-0cff-0310-8789-dd5450dbe970

src/aclocal.m4

index a333dba9c235e0f7dd13c922c3fb39559913512f..f261c8ba0711a5d19044840430ec6848f19a8b21 100644 (file)
@@ -304,6 +304,7 @@ define(CopyHeader,[
 divert(9)dnl
 
 includes:: $1
+       -mkdir $2
        -if cmp $1 $2/$1 >/dev/null 2>&1; then \
                echo ; \
        else \
@@ -311,6 +312,23 @@ includes:: $1
                [$](CP) $1 $2/$1; \
        fi
 
+divert(0)dnl
+])dnl
+dnl
+dnl copy source header file into include dir -- CopySrcHeader(hfile,hdir)
+dnl
+define(CopySrcHeader,[
+divert(9)dnl
+
+includes:: $1
+       -mkdir $2
+       -if cmp $(srcdir)/$1 $2/$1 >/dev/null 2>&1; then \
+               echo ; \
+       else \
+               [$](RM) $2/$1 ; \
+               [$](CP) $(srcdir)/$1 $2/$1; \
+       fi
+
 divert(0)dnl
 ])dnl
 dnl