diff options
Diffstat (limited to 'dhcpctl/Makefile.dist')
-rw-r--r-- | dhcpctl/Makefile.dist | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/dhcpctl/Makefile.dist b/dhcpctl/Makefile.dist index 79391f14..8686ecf6 100644 --- a/dhcpctl/Makefile.dist +++ b/dhcpctl/Makefile.dist @@ -17,11 +17,11 @@ # http://www.isc.org for more information. # -CATMANPAGES = dhcpctl.cat3 -SEDMANPAGES = dhcpctl.man3 +CATMANPAGES = dhcpctl.cat3 omshell.cat1 +SEDMANPAGES = dhcpctl.man3 omshell.man1 SRC = dhcpctl.c callback.c remote.c OBJ = dhcpctl.o callback.o remote.o -MAN = dhcpctl.3 +MAN = dhcpctl.3 omshell.1 HDRS = dhcpctl.h INCLUDES = $(BINDINC) -I$(TOP)/includes @@ -42,8 +42,9 @@ libdhcpctl.a: $(OBJ) ar cruv libdhcpctl.a $(OBJ) $(RANLIB) libdhcpctl.a -install: all - for dir in $(LIBDIR) $(LIBMANDIR) $(INCDIR); do \ +install: all $(CATMANPAGES) + for dir in $(LIBDIR) $(LIBMANDIR) $(INCDIR) $(USRMANDIR) \ + $(USERBINDIR); do \ foo=""; \ for bar in `echo $(DESTDIR)$${dir} |tr / ' '`; do \ foo=$${foo}/$$bar; \ @@ -63,6 +64,10 @@ install: all $(MANINSTALL) $(MANFROM) $${prefix}.$(MANCAT)$${suffix} $(MANTO) \ $(DESTDIR)$(LIBMANDIR)/$${prefix}$(LIBMANEXT); \ done + $(INSTALL) omshell $(DESTDIR)$(USERBINDIR) + $(CHMOD) 755 $(DESTDIR)$(USERBINDIR)/omshell + $(MANINSTALL) $(MANFROM) omshell.$(MANCAT)1 $(MANTO) \ + $(DESTDIR)$(USRMANDIR)/omshell$(USRMANEXT) depend: $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC) @@ -91,4 +96,11 @@ dhcpctl.man3: dhcpctl.3 sed -e "s#ETCDIR#$(ETC)#g" -e "s#DBDIR#$(VARDB)#g" \ -e "s#RUNDIR#$(VARRUN)#g" < dhcpctl.3 >dhcpctl.man3 +omshell.cat1: omshell.man1 + nroff -man omshell.man1 >omshell.cat1 + +omshell.man1: omshell.1 + sed -e "s#ETCDIR#$(ETC)#g" -e "s#DBDIR#$(VARDB)#g" \ + -e "s#RUNDIR#$(VARRUN)#g" < omshell.1 >omshell.man1 + # Dependencies (semi-automatically-generated) |