summaryrefslogtreecommitdiff
path: root/relay
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 /relay
parent3fc9a0ef5ed270f6e635b7d21fc1ed1d6a5990df (diff)
downloadisc-dhcp-88dd0d2083f12d4748b56f47b2c054b0411ab4c7.tar.gz
Fix depend target. Don't echo building of links.
Diffstat (limited to 'relay')
-rw-r--r--relay/Makefile.dist12
1 files changed, 10 insertions, 2 deletions
diff --git a/relay/Makefile.dist b/relay/Makefile.dist
index ed8ff861..39e64f25 100644
--- a/relay/Makefile.dist
+++ b/relay/Makefile.dist
@@ -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.