]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Build and install dhcp-options.5
authorTed Lemon <source@isc.org>
Fri, 21 Nov 1997 23:46:16 +0000 (23:46 +0000)
committerTed Lemon <source@isc.org>
Fri, 21 Nov 1997 23:46:16 +0000 (23:46 +0000)
common/Makefile.dist

index 81f8969c8f545597061e8d665d4e15e342c4ec97..841f0c4f5feeeaa5ceabf9b0a7f1054949efd0bb 100644 (file)
@@ -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)