From: Greg Hudson Date: Sat, 17 Dec 2011 18:22:47 +0000 (+0000) Subject: Fix make depend in unbuilt build tree X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e176b9a8cf2d32ff0b73d7a9a5618a325de93946;p=krb5.git Fix make depend in unbuilt build tree 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 --- diff --git a/src/util/gss-kernel-lib/Makefile.in b/src/util/gss-kernel-lib/Makefile.in index aa1f74ec2..b289582be 100644 --- a/src/util/gss-kernel-lib/Makefile.in +++ b/src/util/gss-kernel-lib/Makefile.in @@ -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: diff --git a/src/util/k5ev/Makefile.in b/src/util/k5ev/Makefile.in index 27e77f4fb..b80a60dfb 100644 --- a/src/util/k5ev/Makefile.in +++ b/src/util/k5ev/Makefile.in @@ -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) $@ diff --git a/src/util/verto/Makefile.in b/src/util/verto/Makefile.in index db6c387ce..a2ff7c5c0 100644 --- a/src/util/verto/Makefile.in +++ b/src/util/verto/Makefile.in @@ -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) $@