Get "make depend" to work in an unbuilt source tree, since bad deps
authorGreg Hudson <ghudson@mit.edu>
Mon, 3 Aug 2009 20:27:03 +0000 (20:27 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 3 Aug 2009 20:27:03 +0000 (20:27 +0000)
files can make it difficult to build the tree.  To do this, make the
depends target depend on generated header files and on header file
copies or links into the main include directory.

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

12 files changed:
src/appl/libpty/Makefile.in
src/include/Makefile.in
src/kadmin/dbutil/Makefile.in
src/kadmin/passwd/Makefile.in
src/kdc/Makefile.in
src/lib/gssapi/generic/Makefile.in
src/lib/gssapi/krb5/Makefile.in
src/lib/kadm5/Makefile.in
src/lib/kadm5/clnt/Makefile.in
src/lib/kadm5/srv/Makefile.in
src/lib/kdb/Makefile.in
src/util/et/Makefile.in

index 924ef1b9b5d48d801cd267a01a906ac1b0e1da65..080d82e277b073a0c155bb974366a06c9e8319ed 100644 (file)
@@ -65,7 +65,7 @@ clean-unix::
        $(RM) libpty.a $(BUILDTOP)/include/libpty.h pty_err.c pty_err.h
 clean-unix:: clean-liblinks clean-libs clean-libobjs
 
-depend::  pty_err.h
+depend:: includes pty_err.h
 
 #install:: libpty.h
 #      $(INSTALL_DATA) $(srcdir)/libpty.h  $(DESTDIR)$(KRB5_INCDIR)/libpty.h
index 2b7cc087712ebe0173111b9a09d1f39dc7c3aa24..4c8ca59d493d19fec8ff83ca0ebf3779dbbf62a8 100644 (file)
@@ -137,3 +137,5 @@ install-headers-unix install:: krb5/krb5.h profile.h
        $(INSTALL_DATA) $(srcdir)/krb5/locate_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)locate_plugin.h
        $(INSTALL_DATA) profile.h $(DESTDIR)$(KRB5_INCDIR)$(S)profile.h
        $(INSTALL_DATA) $(srcdir)/gssapi.h $(DESTDIR)$(KRB5_INCDIR)$(S)gssapi.h
+
+depend:: krb5/krb5.h $(BUILT_HEADERS)
index e88d8b3239f37f6b5423529b683f169ba22fb923..d6eac78a8f074df587eb8147b72afa95dfea9966 100644 (file)
@@ -34,3 +34,4 @@ install::
 clean::
        $(RM) $(PROG) $(OBJS) import_err.c import_err.h
 
+depend:: import_err.h
index e6469c85d5622d139dd650d9515fe8dcd54c5504..19854c96b30230305902f19ef79dfe0476a2f46f 100644 (file)
@@ -24,3 +24,5 @@ $(PROG): $(OBJS) $(KADMCLNT_DEPLIBS) $(KRB5_BASE_DEPLIBS)
 
 clean::
        $(RM) kpasswd_strings.c kpasswd_strings.h $(PROG) $(OBJS)
+
+depend:: kpasswd_strings.h
index 0d37fe1a1d7e99017723bb9abe3694d7cc96eab2..d6371de57509a1b4d3c70404fd745e6933ab2887 100644 (file)
@@ -54,7 +54,7 @@ RT_OBJS= rtest.o \
        policy.o \
        extern.o
 
-depend:: kdc5_err.c
+depend:: kdc5_err.c kdc5_err.h
 
 kdc5_err.c: kdc5_err.et
 
index c35bd1abbad21ddafc5eccd0356ddbdb956c0ebe..42b40308336fc3385189dac97b7ea3796a625166 100644 (file)
@@ -167,7 +167,7 @@ install-headers-unix install:: gssapi.h
                $(DESTDIR)$(KRB5_INCDIR)/gssapi/$$f ; \
        done
 
-depend:: $(ETSRCS)
+depend:: $(ETSRCS) $(ETHDRS) $(HDRS) errmap.h maptest.h
 
 @libobj_frag@
 
index 530d527c2ac725548bee3444cc7817e317e635e7..2ee9e1d9c5b655c7f6285d2cb4d75c7378467e15 100644 (file)
@@ -263,7 +263,7 @@ install-headers-unix install::
                $(DESTDIR)$(KRB5_INCDIR)/gssapi/$$f ; \
        done
 
-depend:: $(ETSRCS)
+depend:: $(ETSRCS) $(ETHDRS) $(GSSAPI_KRB5_HDR) error_map.h
 
 includes::  gssapi_krb5.h
 
index 4644937fec7f8d4ea26abc26a057ae74ad26a459..175231e73d9ec21b25845c897c415de6b229d00f 100644 (file)
@@ -103,5 +103,7 @@ install-headers-unix install:: $(BUILD_HDRS)
        $(INSTALL_DATA) chpass_util_strings.h $(DESTDIR)$(KRB5_INCDIR)$(S)kadm5$(S)chpass_util_strings.h
        $(INSTALL_DATA) kadm_err.h $(DESTDIR)$(KRB5_INCDIR)$(S)kadm5$(S)kadm_err.h
 
+depend:: includes
+
 @libobj_frag@
 
index acc7cfef9bc8b18c73afc3d43344a5de50e1d319..a92d0faa480af42d3154e18c0b1260236179327c 100644 (file)
@@ -72,6 +72,8 @@ clean-unix:: clean-liblinks clean-libs clean-libobjs
 
 install:: install-libs
 
+depend:: includes
+
 @lib_frag@
 @libobj_frag@
 
index fcb92d797b2487da5dad7d0ccf0ab974104eb589..175b83b3bc748ad7d3441a2c7716db751a03c0d2 100644 (file)
@@ -89,6 +89,8 @@ clean-unix:: clean-liblinks clean-libs clean-libobjs
 
 install:: install-libs
 
+depend:: includes
+
 @lib_frag@
 @libobj_frag@
 
index 9c98679aaa5dabae72c7c207dcd808d64c39701a..2946ba942db242a7f7cb25621594ef76987cc9ec 100644 (file)
@@ -61,6 +61,8 @@ clean-unix:: clean-liblinks clean-libs clean-libobjs
 
 generate-files-mac: darwin.exports
 
+depend:: adb_err.h
+
 @lib_frag@
 @libobj_frag@
 
index 42e1263bb4ad96362001d0506b0dd303f2855afd..9dde5204d7827010fa5fe0c67542d1830ec5ed8a 100644 (file)
@@ -242,7 +242,7 @@ TAGS:       et_name.c error_message.c compile_et.c error_table.c \
        etags et_name.c error_message.c compile_et.c \
                error_table.c init_et.c
 
-depend::  et_lex.lex.c
+depend::  et_lex.lex.c includes compile_et
 
 
 @lib_frag@