From: Ted Lemon Date: Fri, 21 Nov 1997 23:46:16 +0000 (+0000) Subject: Build and install dhcp-options.5 X-Git-Tag: DHCP-971122~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73543ee71e17199c226dcdc86e66b5bfb8219ea3;p=thirdparty%2Fdhcp.git Build and install dhcp-options.5 --- diff --git a/common/Makefile.dist b/common/Makefile.dist index 81f8969c8..841f0c4f5 100644 --- a/common/Makefile.dist +++ b/common/Makefile.dist @@ -29,6 +29,7 @@ # OF THE POSSIBILITY OF SUCH DAMAGE. # +CATMANPAGES = dhcp-options.cat5 SRC = raw.c parse.c nit.c icmp.c dispatch.c conflex.c upf.c bpf.c socket.c \ packet.c memory.c print.c options.c inet.c convert.c \ tree.c tables.c hash.c alloc.c errwarn.c inet_addr.c dns.c \ @@ -37,31 +38,38 @@ OBJ = raw.o parse.o nit.o icmp.o dispatch.o conflex.o upf.o bpf.o socket.o \ packet.o memory.o print.o options.o inet.o convert.o \ tree.o tables.o hash.o alloc.o errwarn.o inet_addr.o dns.o \ resolv.o sysconf.o +MAN = dhcp-options.5 DEBUG = -g INCLUDES = -I.. -I../includes CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS) -all: libdhcp.a +all: libdhcp.a $(CATMANPAGES) libdhcp.a: $(OBJ) rm -f libdhcp.a ar cruv libdhcp.a $(OBJ) ranlib libdhcp.a -install: +install: $(CATMANPAGES) + if [ ! -d $(FFMANDIR) ]; then \ + mkdir $(FFMANDIR); \ + chmod 755 $(FFMANDIR); \ + fi + $(MANINSTALL) $(MANFROM) dhcp-options.cat5 $(MANTO) \ + $(FFMANDIR)/dhcp-options$(FFMANEXT) + clean: -rm -f $(OBJ) realclean: clean - -rm -f libdhcp.a *~ #* + -rm -f libdhcp.a *~ #* $(CATMANPAGES) distclean: realclean -rm -f Makefile -# 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. +dhcp-options.cat5: dhcp-options.5 + nroff -man dhcp-options.5 >dhcp-options.cat5 # Dependencies (semi-automatically-generated)