* Makefile.in: Install krb524.h and krb524_err.h header file so
authorEzra Peisach <epeisach@mit.edu>
Tue, 3 Oct 2000 16:09:10 +0000 (16:09 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 3 Oct 2000 16:09:10 +0000 (16:09 +0000)
applications can include for prototypes.

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

src/krb524/ChangeLog
src/krb524/Makefile.in

index 0112ab16d38b9fb8b2581e3c73a4790ee6962f3e..bb2bd42be6c7c84a9106f170c7f33d2458ffe392 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-03  Ezra Peisach  <epeisach@mit.edu>
+
+       * Makefile.in: Install krb524.h and krb524_err.h header file so
+       applications can include for prototypes.
+
 2000-08-09  Tom Yu  <tlyu@mit.edu>
 
        * cnv_tkt_skey.c: Fix up static prototypes for
index c6bf0cc5c5484790636f08c6af8fa62294209580..64c942de2432693f61f1b1fa06283b637612ffdb 100644 (file)
@@ -76,12 +76,31 @@ STLIBOBJS = \
 
 GENS   = krb524_err.c krb524_err.h
 
-all-unix:: $(GENS)
+KRB524_HDR=$(BUILDTOP)$(S)include$(S)krb524.h
+
+all-unix:: $(GENS) 
 all-unix:: all-libs
+all-unix:: includes
 
 all-unix:: krb524d krb524test k524init
 
-all-windows:: $(OUTPRE)krb524.lib $(OUTPRE)k524init.exe
+includes:: krb524.h krb524_err.h
+       if cmp $(srcdir)/krb524.h \
+       $(BUILDTOP)/include/krb524.h  >/dev/null 2>&1; then :; \
+       else \
+               (set -x; $(RM) $(BUILDTOP)/include/krb524.h; \
+                $(CP) $(srcdir)/krb524.h \
+                       $(BUILDTOP)/include/krb524.h) ; \
+       fi
+       if cmp $(srcdir)/krb524_err.h \
+       $(BUILDTOP)/include/krb524_err.h  >/dev/null 2>&1; then :; \
+       else \
+               (set -x; $(RM) $(BUILDTOP)/include/krb524_err.h; \
+                $(CP) krb524_err.h \
+                       $(BUILDTOP)/include/krb524_err.h) ; \
+       fi
+
+all-windows:: $(KRB524_HDR) $(OUTPRE)krb524.lib $(OUTPRE)k524init.exe
 
 krb524test: libkrb524.a test.o $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS)
        $(CC_LINK) -o krb524test test.o $(KRB524_LIB) $(KRB4COMPAT_LIBS)
@@ -106,3 +125,7 @@ install-unix:: install-libs
 clean-unix:: clean-libs clean-libobjs
        $(RM) $(OBJS) $(GENS) core *~ *.bak #*
        $(RM) krb524test krb524d k524init test.o krb524d.o k524init.o
+       $(RM) $(BUILDTOP)/include/krb524.h $(BUILDTOP)/include/krb524_err.h
+
+$(KRB524_HDR): krb524.h
+       $(CP) krb524.h $@