From 94ab0b3be133262ea1b8e3fb75e51ebb8a74668e Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Thu, 22 Oct 1998 04:50:29 +0000 Subject: [PATCH] Add depend target --- Makefile.dist | 6 ++++++ client/Makefile.dist | 5 ++++- common/Makefile.dist | 3 +++ dhcpctl/Makefile.dist | 5 ++++- relay/Makefile.dist | 3 +++ server/Makefile.dist | 5 ++++- statmsg/Makefile.dist | 5 ++++- sysconfd/Makefile.dist | 3 +++ 8 files changed, 31 insertions(+), 4 deletions(-) diff --git a/Makefile.dist b/Makefile.dist index 35a6c4ab..e1e10fe9 100644 --- a/Makefile.dist +++ b/Makefile.dist @@ -44,6 +44,12 @@ install: (cd $$dir; $(MAKE) install); \ done +depend: + @for dir in ${SUBDIRS}; do \ + echo "Making dependencies in $$dir"; \ + (cd $$dir; $(MAKE) depend); \ + done + clean: @for dir in ${SUBDIRS}; do \ echo "Cleaning in $$dir"; \ diff --git a/client/Makefile.dist b/client/Makefile.dist index 00938401..df9b6504 100644 --- a/client/Makefile.dist +++ b/client/Makefile.dist @@ -79,9 +79,12 @@ install: $(PROG) $(CATMANPAGES) $(MANINSTALL) $(MANFROM) dhclient.leases.cat5 $(MANTO) \ $(FFMANDIR)/dhclient.leases$(FFMANEXT) +depend: + makedepend $(INCLUDES) $(PREDEFINES) $(SRCS) + clean: -rm -f $(OBJS) - + realclean: clean -rm -f $(PROG) $(CATMANPAGES) *~ #* diff --git a/common/Makefile.dist b/common/Makefile.dist index 4c91da04..063a94bc 100644 --- a/common/Makefile.dist +++ b/common/Makefile.dist @@ -72,6 +72,9 @@ install: $(CATMANPAGES) $(MANINSTALL) $(MANFROM) dhcp-options.cat5 $(MANTO) \ $(FFMANDIR)/dhcp-options$(FFMANEXT) +depend: + makedepend $(INCLUDES) $(PREDEFINES) $(SRCS) + clean: -rm -f $(OBJ) diff --git a/dhcpctl/Makefile.dist b/dhcpctl/Makefile.dist index b2f9520e..629615f3 100644 --- a/dhcpctl/Makefile.dist +++ b/dhcpctl/Makefile.dist @@ -65,9 +65,12 @@ install: $(PROG) $(CATMANPAGES) # $(MANINSTALL) $(MANFROM) dhcpctl.cat8 $(MANTO) \ # $(ADMMANDIR)/dhcpctl$(ADMMANEXT) +depend: + makedepend $(INCLUDES) $(PREDEFINES) $(SRCS) + clean: -rm -f $(OBJS) - + realclean: clean -rm -f $(PROG) $(CATMANPAGES) *~ #* diff --git a/relay/Makefile.dist b/relay/Makefile.dist index c08cbf06..95787dc2 100644 --- a/relay/Makefile.dist +++ b/relay/Makefile.dist @@ -64,6 +64,9 @@ install: $(PROG) $(CATMANPAGES) $(MANINSTALL) $(MANFROM) dhcrelay.cat8 $(MANTO) \ $(ADMMANDIR)/dhcrelay$(ADMMANEXT) +depend: + makedepend $(INCLUDES) $(PREDEFINES) $(SRCS) + clean: -rm -f $(OBJS) dhclient.o diff --git a/server/Makefile.dist b/server/Makefile.dist index 83dc8633..36bf6af0 100644 --- a/server/Makefile.dist +++ b/server/Makefile.dist @@ -68,9 +68,12 @@ install: $(PROG) $(CATMANPAGES) $(MANINSTALL) $(MANFROM) dhcpd.leases.cat5 $(MANTO) \ $(FFMANDIR)/dhcpd.leases$(FFMANEXT) +depend: + makedepend $(INCLUDES) $(PREDEFINES) $(SRCS) + clean: -rm -f $(OBJS) - + realclean: clean -rm -f $(PROG) $(CATMANPAGES) *~ #* diff --git a/statmsg/Makefile.dist b/statmsg/Makefile.dist index 8ebe0f80..03363d98 100644 --- a/statmsg/Makefile.dist +++ b/statmsg/Makefile.dist @@ -65,9 +65,12 @@ install: $(PROG) $(CATMANPAGES) # $(MANINSTALL) $(MANFROM) statmsg.cat8 $(MANTO) \ # $(ADMMANDIR)/statmsg$(ADMMANEXT) +depend: + makedepend $(INCLUDES) $(PREDEFINES) $(SRCS) + clean: -rm -f $(OBJS) - + realclean: clean -rm -f $(PROG) $(CATMANPAGES) *~ #* diff --git a/sysconfd/Makefile.dist b/sysconfd/Makefile.dist index 4c61b276..70c55c5d 100644 --- a/sysconfd/Makefile.dist +++ b/sysconfd/Makefile.dist @@ -65,6 +65,9 @@ install: $(PROG) $(CATMANPAGES) # $(MANINSTALL) $(MANFROM) sysconfd.cat8 $(MANTO) \ # $(ADMMANDIR)/sysconfd$(ADMMANEXT) +depend: + makedepend $(INCLUDES) $(PREDEFINES) $(SRCS) + clean: -rm -f $(OBJS)