summaryrefslogtreecommitdiff
path: root/relay
diff options
context:
space:
mode:
Diffstat (limited to 'relay')
-rw-r--r--relay/Makefile.dist8
1 files changed, 5 insertions, 3 deletions
diff --git a/relay/Makefile.dist b/relay/Makefile.dist
index e5e393e9..74db97af 100644
--- a/relay/Makefile.dist
+++ b/relay/Makefile.dist
@@ -62,10 +62,12 @@ distclean: realclean
# macros aren't available on older unices. Catted man pages are
# provided in the distribution so that this doesn't become a problem.
-dhcrelay.cat8: dhcrelay.8
+dhcrelay.cat8: dhcrelay.man8
+ nroff -man dhcrelay.man8 >dhcrelay.cat8
+
+dhcrelay.man8: dhcrelay.8
sed -e "s#ETCDIR#$(ETC)#" -e "s#DBDIR#$(VARDB)#" \
- -e "s#RUNDIR#$(VARRUN)#" < dhcrelay.8 \
- | nroff -man >dhcrelay.cat8
+ -e "s#RUNDIR#$(VARRUN)#" < dhcrelay.8 >dhcrelay.man8
dhcrelay: dhcrelay.o $(DHCPLIB)
$(CC) $(LFLAGS) -o $(PROG) dhcrelay.o $(DHCPLIB) $(LIBS)