2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-01 23:05:29 +00:00

Fix depend target. Don't echo building of links.

This commit is contained in:
Ted Lemon
2000-06-20 20:29:16 +00:00
parent 3fc9a0ef5e
commit 88dd0d2083
4 changed files with 43 additions and 9 deletions

View File

@@ -19,6 +19,7 @@
CATMANPAGES = dhcpctl.cat3 CATMANPAGES = dhcpctl.cat3
SEDMANPAGES = dhcpctl.man3 SEDMANPAGES = dhcpctl.man3
MAN = dhcpctl.3
SRC = res_mkupdate.c res_init.c res_update.c res_send.c res_comp.c \ SRC = res_mkupdate.c res_init.c res_update.c res_send.c res_comp.c \
res_sendsigned.c res_findzonecut.c res_query.c res_mkquery.c \ res_sendsigned.c res_findzonecut.c res_query.c res_mkquery.c \
ns_date.c ns_parse.c ns_sign.c ns_name.c ns_samedomain.c ns_verify.c \ ns_date.c ns_parse.c ns_sign.c ns_name.c ns_samedomain.c ns_verify.c \
@@ -27,9 +28,10 @@ OBJ = res_mkupdate.o res_init.o res_update.o res_send.o res_comp.o \
res_sendsigned.o res_findzonecut.o res_query.o res_mkquery.o \ res_sendsigned.o res_findzonecut.o res_query.o res_mkquery.o \
ns_date.o ns_parse.o ns_sign.o ns_name.o ns_samedomain.o ns_verify.o \ ns_date.o ns_parse.o ns_sign.o ns_name.o ns_samedomain.o ns_verify.o \
dst_api.o hmac_link.o md5_dgst.o prandom.o support.o base64.o dst_api.o hmac_link.o md5_dgst.o prandom.o support.o base64.o
HDRS = dst_internal.h md5.h md5_locl.h
DEBUG = -g DEBUG = -g
INCLUDES = $(BINDINC) -I../includes INCLUDES = $(BINDINC) -I$(TOP)/includes
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS) -DHMAC_MD5 -DMINIRES_LIB CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS) -DHMAC_MD5 -DMINIRES_LIB
all: libres.a all: libres.a
@@ -42,7 +44,7 @@ libres.a: $(OBJ)
$(RANLIB) libres.a $(RANLIB) libres.a
depend: depend:
mkdep $(INCLUDES) $(PREDEFINES) $(SRC) $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)
clean: clean:
-rm -f $(OBJ) libres.a -rm -f $(OBJ) libres.a
@@ -53,6 +55,14 @@ realclean: clean
distclean: realclean distclean: realclean
-rm -f Makefile -rm -f Makefile
links:
@for foo in $(SRC) $(MAN) $(HDRS); do \
if [ ! -b $$foo ]; then \
rm -f $$foo; \
fi; \
ln -s $(TOP)/minires/$$foo $$foo; \
done
dhcpctl.cat3: dhcpctl.man3 dhcpctl.cat3: dhcpctl.man3
nroff -man dhcpctl.man3 >dhcpctl.cat3 nroff -man dhcpctl.man3 >dhcpctl.cat3

View File

@@ -26,7 +26,7 @@ OBJ = protocol.o buffer.o alloc.o result.o connection.o errwarn.o \
MAN = omapi.3 MAN = omapi.3
DEBUG = -g DEBUG = -g
INCLUDES = $(BINDINC) -I../includes INCLUDES = $(BINDINC) -I$(TOP)/includes
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS) CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
all: libomapi.a test $(CATMANPAGES) all: libomapi.a test $(CATMANPAGES)
@@ -53,7 +53,7 @@ install: all
$(INSTALL) libomapi.a $(DESTDIR)$(LIBDIR) $(INSTALL) libomapi.a $(DESTDIR)$(LIBDIR)
$(CHMOD) 644 $(DESTDIR)$(LIBDIR)/libomapi.a $(CHMOD) 644 $(DESTDIR)$(LIBDIR)/libomapi.a
for file in alloc.h buffer.h omapip.h; do \ for file in alloc.h buffer.h omapip.h; do \
$(INSTALL) ../includes/omapip/$$file $(DESTDIR)$(INCDIR)/omapip; \ $(INSTALL) $(TOP)/includes/omapip/$$file $(DESTDIR)$(INCDIR)/omapip; \
$(CHMOD) 644 $(DESTDIR)$(INCDIR)/omapip/$$file; \ $(CHMOD) 644 $(DESTDIR)$(INCDIR)/omapip/$$file; \
done done
for man in $(MAN); do \ for man in $(MAN); do \
@@ -64,7 +64,7 @@ install: all
done done
depend: depend:
mkdep $(INCLUDES) $(PREDEFINES) $(SRC) $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)
clean: clean:
-rm -f $(OBJ) test.o test -rm -f $(OBJ) test.o test
@@ -75,6 +75,14 @@ realclean: clean
distclean: realclean distclean: realclean
-rm -f Makefile -rm -f Makefile
links:
@for foo in $(SRC) $(MAN) test.c; do \
if [ ! -b $$foo ]; then \
rm -f $$foo; \
fi; \
ln -s $(TOP)/omapip/$$foo $$foo; \
done
omapi.cat3: omapi.man3 omapi.cat3: omapi.man3
nroff -man omapi.man3 >omapi.cat3 nroff -man omapi.man3 >omapi.cat3

View File

@@ -25,7 +25,7 @@ PROG = dhcrelay
MAN = dhcrelay.8 MAN = dhcrelay.8
DEBUG = -g DEBUG = -g
INCLUDES = -I.. $(BINDINC) -I../includes INCLUDES = -I$(TOP) $(BINDINC) -I$(TOP)/includes
DHCPLIB = ../common/libdhcp.a ../omapip/libomapi.a DHCPLIB = ../common/libdhcp.a ../omapip/libomapi.a
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS) CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
@@ -48,7 +48,7 @@ install: all
$(DESTDIR)$(ADMMANDIR)/dhcrelay$(ADMMANEXT) $(DESTDIR)$(ADMMANDIR)/dhcrelay$(ADMMANEXT)
depend: depend:
mkdep $(INCLUDES) $(PREDEFINES) $(SRCS) $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRCS)
clean: clean:
-rm -f $(OBJS) dhclient.o -rm -f $(OBJS) dhclient.o
@@ -59,6 +59,14 @@ realclean: clean
distclean: realclean distclean: realclean
-rm -f Makefile -rm -f Makefile
links:
@for foo in $(SRCS) $(MAN); do \
if [ ! -b $$foo ]; then \
rm -f $$foo; \
fi; \
ln -s $(TOP)/relay/$$foo $$foo; \
done
# These should only be done on 4.4 BSD-based systems, since the mandoc # These should only be done on 4.4 BSD-based systems, since the mandoc
# macros aren't available on older unices. Catted man pages are # macros aren't available on older unices. Catted man pages are
# provided in the distribution so that this doesn't become a problem. # provided in the distribution so that this doesn't become a problem.

View File

@@ -27,7 +27,7 @@ PROG = dhcpd
MAN = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5 MAN = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
DEBUG = -g DEBUG = -g
INCLUDES = -I.. $(BINDINC) -I../includes INCLUDES = -I$(TOP) $(BINDINC) -I$(TOP)/includes
DHCPLIB = ../common/libdhcp.a ../omapip/libomapi.a $(BINDLIB) DHCPLIB = ../common/libdhcp.a ../omapip/libomapi.a $(BINDLIB)
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS) CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
@@ -54,7 +54,7 @@ install: all
$(DESTDIR)$(FFMANDIR)/dhcpd.leases$(FFMANEXT) $(DESTDIR)$(FFMANDIR)/dhcpd.leases$(FFMANEXT)
depend: depend:
mkdep $(INCLUDES) $(PREDEFINES) $(SRCS) $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRCS)
clean: clean:
-rm -f $(OBJS) -rm -f $(OBJS)
@@ -65,6 +65,14 @@ realclean: clean
distclean: realclean distclean: realclean
-rm -f Makefile -rm -f Makefile
links:
@for foo in $(SRCS) $(MAN); do \
if [ ! -b $$foo ]; then \
rm -f $$foo; \
fi; \
ln -s $(TOP)/server/$$foo $$foo; \
done
# These should only be done on 4.4 BSD-based systems, since the mandoc # These should only be done on 4.4 BSD-based systems, since the mandoc
# macros aren't available on older unices. Catted man pages are # macros aren't available on older unices. Catted man pages are
# provided in the distribution so that this doesn't become a problem. # provided in the distribution so that this doesn't become a problem.