summaryrefslogtreecommitdiff
path: root/minires
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-06-20 20:29:16 +0000
committerTed Lemon <source@isc.org>2000-06-20 20:29:16 +0000
commit88dd0d2083f12d4748b56f47b2c054b0411ab4c7 (patch)
tree7fe5b4dd17a20121c424556f2a632b120bb14a57 /minires
parent3fc9a0ef5ed270f6e635b7d21fc1ed1d6a5990df (diff)
downloadisc-dhcp-88dd0d2083f12d4748b56f47b2c054b0411ab4c7.tar.gz
Fix depend target. Don't echo building of links.
Diffstat (limited to 'minires')
-rw-r--r--minires/Makefile.dist14
1 files changed, 12 insertions, 2 deletions
diff --git a/minires/Makefile.dist b/minires/Makefile.dist
index 842c3a8c..c0525f19 100644
--- a/minires/Makefile.dist
+++ b/minires/Makefile.dist
@@ -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