]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix depend target. Don't echo building of links.
authorTed Lemon <source@isc.org>
Tue, 20 Jun 2000 20:29:16 +0000 (20:29 +0000)
committerTed Lemon <source@isc.org>
Tue, 20 Jun 2000 20:29:16 +0000 (20:29 +0000)
minires/Makefile.dist
omapip/Makefile.dist
relay/Makefile.dist
server/Makefile.dist

index 842c3a8cb08164b95bc4e7d7ac28889f259303d1..c0525f19a400f806c876119dc6a89391f6657abb 100644 (file)
@@ -19,6 +19,7 @@
 
 CATMANPAGES = dhcpctl.cat3
 SEDMANPAGES = dhcpctl.man3
+MAN    = dhcpctl.3
 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 \
         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 \
         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
+HDRS   = dst_internal.h md5.h md5_locl.h
 
 DEBUG  = -g
-INCLUDES = $(BINDINC) -I../includes
+INCLUDES = $(BINDINC) -I$(TOP)/includes
 CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS) -DHMAC_MD5 -DMINIRES_LIB
 
 all:   libres.a
@@ -42,7 +44,7 @@ libres.a:     $(OBJ)
        $(RANLIB) libres.a
 
 depend:
-       mkdep $(INCLUDES) $(PREDEFINES) $(SRC)
+       $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)
 
 clean:
        -rm -f $(OBJ) libres.a
@@ -53,6 +55,14 @@ realclean: clean
 distclean: realclean
        -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
        nroff -man dhcpctl.man3 >dhcpctl.cat3
 
index 810a385bde7d3a22e4ddfe4a221a57e6a6719356..544fa04e8abc12a881555de821e837a0cc5cb96a 100644 (file)
@@ -26,7 +26,7 @@ OBJ    = protocol.o buffer.o alloc.o result.o connection.o errwarn.o \
 MAN    = omapi.3
 
 DEBUG  = -g
-INCLUDES = $(BINDINC) -I../includes
+INCLUDES = $(BINDINC) -I$(TOP)/includes
 CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
 
 all:   libomapi.a test $(CATMANPAGES)
@@ -53,7 +53,7 @@ install: all
        $(INSTALL) libomapi.a $(DESTDIR)$(LIBDIR)
        $(CHMOD) 644 $(DESTDIR)$(LIBDIR)/libomapi.a
        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; \
        done
        for man in $(MAN); do \
@@ -64,7 +64,7 @@ install: all
        done
 
 depend:
-       mkdep $(INCLUDES) $(PREDEFINES) $(SRC)
+       $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)
 
 clean:
        -rm -f $(OBJ) test.o test
@@ -75,6 +75,14 @@ realclean: clean
 distclean: realclean
        -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
        nroff -man omapi.man3 >omapi.cat3
 
index ed8ff86155fb114ec002b2d67489261797c01699..39e64f25fb5061a662a568c6623b6e3b8fd7d768 100644 (file)
@@ -25,7 +25,7 @@ PROG   = dhcrelay
 MAN    = dhcrelay.8
 
 DEBUG  = -g
-INCLUDES = -I.. $(BINDINC) -I../includes
+INCLUDES = -I$(TOP) $(BINDINC) -I$(TOP)/includes
 DHCPLIB = ../common/libdhcp.a ../omapip/libomapi.a
 CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
 
@@ -48,7 +48,7 @@ install: all
                                $(DESTDIR)$(ADMMANDIR)/dhcrelay$(ADMMANEXT)
 
 depend:
-       mkdep $(INCLUDES) $(PREDEFINES) $(SRCS)
+       $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRCS)
 
 clean:
        -rm -f $(OBJS) dhclient.o
@@ -59,6 +59,14 @@ realclean: clean
 distclean: realclean
        -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
 # macros aren't available on older unices.   Catted man pages are
 # provided in the distribution so that this doesn't become a problem.
index 3ed7d225743c659c5e8411d062a398e74499473a..f49b83af60ce882492da043901ee03d93e0c225b 100644 (file)
@@ -27,7 +27,7 @@ PROG   = dhcpd
 MAN    = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
 
 DEBUG  = -g
-INCLUDES = -I.. $(BINDINC) -I../includes
+INCLUDES = -I$(TOP) $(BINDINC) -I$(TOP)/includes
 DHCPLIB = ../common/libdhcp.a ../omapip/libomapi.a $(BINDLIB)
 CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
 
@@ -54,7 +54,7 @@ install: all
                        $(DESTDIR)$(FFMANDIR)/dhcpd.leases$(FFMANEXT)
 
 depend:
-       mkdep $(INCLUDES) $(PREDEFINES) $(SRCS)
+       $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRCS)
 
 clean:
        -rm -f $(OBJS)
@@ -65,6 +65,14 @@ realclean: clean
 distclean: realclean
        -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
 # macros aren't available on older unices.   Catted man pages are
 # provided in the distribution so that this doesn't become a problem.