Fix make depend in unbuilt build tree
authorGreg Hudson <ghudson@mit.edu>
Sat, 17 Dec 2011 18:22:47 +0000 (18:22 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sat, 17 Dec 2011 18:22:47 +0000 (18:22 +0000)
Add dependency rules so that "make depend" succeeds from a fresh build
tree.

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

src/util/gss-kernel-lib/Makefile.in
src/util/k5ev/Makefile.in
src/util/verto/Makefile.in

index aa1f74ec2155e7ede3d64a23c4d090f15789b02e..b289582be19dc621eff362a66528398470fd602f 100644 (file)
@@ -208,6 +208,21 @@ profile.h: $(INCLUDE_BUILD)/profile.h
 com_err.h: $(INCLUDE_BUILD)/com_err.h
        $(CP) $(INCLUDE_BUILD)/com_err.h $@
 
+# Rules to generate dependency headers if they don't already exist,
+# for "make depend" from an unbuilt directory.
+$(GSS_GENERIC_BUILD)/gssapi.h:
+       (cd $(GSS_GENERIC_BUILD) && $(MAKE) gssapi.h)
+$(GSS_GENERIC_BUILD)/gssapi_err_generic.h:
+       (cd $(GSS_GENERIC_BUILD) && $(MAKE) gssapi_err_generic.h)
+$(GSS_KRB5_BUILD)/gssapi_krb5.h:
+       (cd $(GSS_KRB5_BUILD) && $(MAKE) gssapi_krb5.h)
+$(GSS_KRB5_BUILD)/gssapi_err_krb5.h:
+       (cd $(GSS_KRB5_BUILD) && $(MAKE) gssapi_err_krb5.h)
+$(INCLUDE_BUILD)/osconf.h:
+       (cd $(INCLUDE_BUILD) && $(MAKE) osconf.h)
+$(INCLUDE_BUILD)/krb5/krb5.h:
+       (cd $(INCLUDE_BUILD) && $(MAKE) krb5/krb5.h)
+
 gssapi:
        test -d gssapi || mkdir gssapi
 krb5:
index 27e77f4fbe685941dd3c422932e567a37040e41e..b80a60dfb4daf7a3fda2241e2bb13a00a2bf4ebd 100644 (file)
@@ -33,6 +33,7 @@ clean-unix:: clean-liblinks clean-libs clean-libobjs
        $(RM) $(VERTO_K5EV_HDR)
 
 includes:: $(VERTO_K5EV_HDR)
+depend:: $(VERTO_K5EV_HDR)
 
 $(VERTO_K5EV_HDR): $(srcdir)/verto-k5ev.h
        $(RM) $@
index db6c387ce7bc25bdcc734ef123bd3eb5292c8755..a2ff7c5c0ce26b6031c4e3eacf3ba495e795cae7 100644 (file)
@@ -31,6 +31,7 @@ clean-unix:: clean-liblinks clean-libs clean-libobjs
        $(RM) $(VERTO_HDR)
 
 includes:: $(VERTO_HDR)
+depend:: $(VERTO_HDR)
 
 $(VERTO_HDR): $(srcdir)/verto.h
        $(RM) $@