Makefile.in: krb_err.h is a generated file; fix build/install rules so
authorRichard Basch <probe@mit.edu>
Thu, 20 Feb 1997 22:44:28 +0000 (22:44 +0000)
committerRichard Basch <probe@mit.edu>
Thu, 20 Feb 1997 22:44:28 +0000 (22:44 +0000)
that they don't try installing it from the source directory
configure.in: Makefile requires 'awk' to build krb_err.h

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

src/include/kerberosIV/ChangeLog
src/include/kerberosIV/Makefile.in
src/include/kerberosIV/configure.in

index 75c900502a9f57d12ba590db214f7623867859c1..0b820c61127b52b29080f931351c6aeda35b37ff 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb 20 17:38:23 1997  Richard Basch  <basch@lehman.com>
+
+       * configure.in: awk is required by the Makefile
+       * Makefile.in: Re-arranged build/install rules because
+               krb_err.h is a generated file.
+
 Mon Feb 17 13:59:41 1997  Richard Basch  <basch@lehman.com>
 
        * des.h: Added various function prototypes
index 0e4705ff2c5552529a8e60e1fe45da1d6093b46f..e0959b3d2d770d04ec4f87e60e12d98cb1505a44 100644 (file)
@@ -1,14 +1,15 @@
-KRB4_HEADERS=krb.h des.h kadm.h mit-copyright.h \
-       krb_err.h
+KRB4_HEADERS=krb.h des.h kadm.h mit-copyright.h
 
-all::
+all-unix:: krb_err.h
 
-clean::
-
-depend::
+krb_err.h: $(SRCTOP)/lib/krb4/krb_err.et
+       $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=$@ \
+               $(SRCTOP)/lib/krb4/krb_err.et
 
 install::
        @set -x; for f in $(KRB4_HEADERS) ; \
        do $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(KRB5_INCDIR)/kerberosIV/$$f ; \
        done
 
+install:: krb_err.h
+       $(INSTALL_DATA) $(C)krb_err.h $(DESTDIR)$(KRB5_INCDIR)$(S)kerberosIV$(S)krb_err.h
index f9dafe7fd1f7fe3e9d51c5efcd4417eb242aaee4..1d62954b13b0eec997976d943de98959f67b48ef 100644 (file)
@@ -1,4 +1,5 @@
 AC_INIT(configure.in)
 CONFIG_RULES
+AC_PROG_AWK
 AC_PROG_INSTALL
 V5_AC_OUTPUT_MAKEFILE