diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-06-11 12:48:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-06-11 12:48:20 +0000 |
commit | 5d0e4d24b95bfb54f541ac6ba4c5e24044ec78af (patch) | |
tree | 221e9dc3041cfb74b3f64249657fa81616142d6f /usr.sbin | |
parent | 76bb975f8e5e5b8184be675108b355d2fd1e98b3 (diff) |
Unbreak the build with MANPS, making sure to still honour NOMAN.
Problem found and fix tested by jmc@.
Note that the patch to Makefile.in is useful for two additional reasons:
1. It removes an ugly reimplementation of the bsd.man.mk .8.cat8 target.
2. It will be required anyway when installing source manuals in the future.
The bsd-wrapper patch looks redundant, but isn't. These rules are not
in bsd.man.mk because elsewhere, the source files (*.8 etc.) are part of
the source tree, not generated files.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/nsd/Makefile.bsd-wrapper | 11 | ||||
-rw-r--r-- | usr.sbin/nsd/Makefile.in | 35 |
2 files changed, 27 insertions, 19 deletions
diff --git a/usr.sbin/nsd/Makefile.bsd-wrapper b/usr.sbin/nsd/Makefile.bsd-wrapper index bc1d8e6504e..0ae4cd6904e 100644 --- a/usr.sbin/nsd/Makefile.bsd-wrapper +++ b/usr.sbin/nsd/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.6 2011/01/24 10:39:46 jakob Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.7 2011/06/11 12:48:19 schwarze Exp $ .include <bsd.own.mk> @@ -27,8 +27,15 @@ PROG= nsd nsd-zonec nsd-notify nsd-checkconf nsd-patch nsd-xfer MAN= nsd.8 nsdc.8 nsd-zonec.8 nsd-notify.8 nsd-checkconf.8 nsd-patch.8 \ nsd-xfer.8 nsd.conf.5 +all: gnu -all: config.status +.ifndef NOMAN +${MANALL} ${PSALL}: ${MAN} + +${MAN}: gnu +.endif + +gnu: config.status ${MAKE} .FORCE: .IGNORE diff --git a/usr.sbin/nsd/Makefile.in b/usr.sbin/nsd/Makefile.in index ee796a8f1b8..28eaf23adf6 100644 --- a/usr.sbin/nsd/Makefile.in +++ b/usr.sbin/nsd/Makefile.in @@ -63,7 +63,8 @@ EDIT = sed \ -e 's,@kpriority\@,$(kpriority),g' TARGETS = nsd nsd-zonec nsd-notify nsd-xfer nsdc.sh nsd-checkconf nsd-patch nsd.conf.sample \ - nsd.cat8 nsd-zonec.cat8 nsd-notify.cat8 nsd-xfer.cat8 nsdc.cat8 nsd-checkconf.cat8 nsd-patch.cat8 nsd.conf.cat5 + nsd.8 nsd-zonec.8 nsd-notify.8 nsd-xfer.8 nsdc.8 \ + nsd-checkconf.8 nsd-patch.8 nsd.conf.5 ALL_OBJECTS = \ answer.o \ @@ -318,37 +319,37 @@ nsd.conf.sample: $(srcdir)/nsd.conf.sample.in config.h rm -f nsd.conf.sample $(EDIT) $(srcdir)/nsd.conf.sample.in > nsd.conf.sample -nsd.conf.cat5: $(srcdir)/nsd.conf.5.in config.h +nsd.conf.5: $(srcdir)/nsd.conf.5.in config.h rm -f nsd.conf.5 - $(EDIT) $(srcdir)/nsd.conf.5.in | mandoc > nsd.conf.cat5 + $(EDIT) $(srcdir)/nsd.conf.5.in > nsd.conf.5 -nsd.cat8: $(srcdir)/nsd.8.in config.h +nsd.8: $(srcdir)/nsd.8.in config.h rm -f nsd.8 - $(EDIT) $(srcdir)/nsd.8.in | mandoc > nsd.cat8 + $(EDIT) $(srcdir)/nsd.8.in > nsd.8 -nsdc.cat8: $(srcdir)/nsdc.8.in config.h +nsdc.8: $(srcdir)/nsdc.8.in config.h rm -f nsdc.8 - $(EDIT) $(srcdir)/nsdc.8.in | mandoc > nsdc.cat8 + $(EDIT) $(srcdir)/nsdc.8.in > nsdc.8 -nsd-zonec.cat8: $(srcdir)/zonec.8.in config.h +nsd-zonec.8: $(srcdir)/zonec.8.in config.h rm -f nsd-zonec.8 - $(EDIT) $(srcdir)/zonec.8.in | mandoc > nsd-zonec.cat8 + $(EDIT) $(srcdir)/zonec.8.in > nsd-zonec.8 -nsd-notify.cat8: $(srcdir)/nsd-notify.8.in config.h +nsd-notify.8: $(srcdir)/nsd-notify.8.in config.h rm -f nsd-notify.8 - $(EDIT) $(srcdir)/nsd-notify.8.in | mandoc > nsd-notify.cat8 + $(EDIT) $(srcdir)/nsd-notify.8.in > nsd-notify.8 -nsd-xfer.cat8: $(srcdir)/nsd-xfer.8.in config.h +nsd-xfer.8: $(srcdir)/nsd-xfer.8.in config.h rm -f nsd-xfer.8 - $(EDIT) $(srcdir)/nsd-xfer.8.in | mandoc > nsd-xfer.cat8 + $(EDIT) $(srcdir)/nsd-xfer.8.in > nsd-xfer.8 -nsd-checkconf.cat8: $(srcdir)/nsd-checkconf.8.in config.h +nsd-checkconf.8: $(srcdir)/nsd-checkconf.8.in config.h rm -f nsd-checkconf.8 - $(EDIT) $(srcdir)/nsd-checkconf.8.in | mandoc > nsd-checkconf.cat8 + $(EDIT) $(srcdir)/nsd-checkconf.8.in > nsd-checkconf.8 -nsd-patch.cat8: $(srcdir)/nsd-patch.8.in config.h +nsd-patch.8: $(srcdir)/nsd-patch.8.in config.h rm -f nsd-patch.8 - $(EDIT) $(srcdir)/nsd-patch.8.in | mandoc > nsd-patch.cat8 + $(EDIT) $(srcdir)/nsd-patch.8.in > nsd-patch.8 install: all $(INSTALL) -d $(DESTDIR)$(sbindir) |