summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-01-18 15:05:20 +0000
committerart <art@openbsd.org>2001-01-18 15:05:20 +0000
commit87e08be71cb64699197902e00d163b03cba5f44b (patch)
tree89e15ee5910fe26bb93fbae9625a9b85db424253
parentremove signal races, using flags (diff)
downloadwireguard-openbsd-87e08be71cb64699197902e00d163b03cba5f44b.tar.xz
wireguard-openbsd-87e08be71cb64699197902e00d163b03cba5f44b.zip
Fix NOMAN builds.
-rw-r--r--sbin/disklabel/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/disklabel/Makefile b/sbin/disklabel/Makefile
index b97df1ec00b..02508a80c9a 100644
--- a/sbin/disklabel/Makefile
+++ b/sbin/disklabel/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.22 2001/01/17 04:23:45 d Exp $
+# $OpenBSD: Makefile,v 1.23 2001/01/18 15:05:20 art Exp $
PROG= disklabel
SRCS= disklabel.c dkcksum.c editor.c manual.c
@@ -6,11 +6,17 @@ DPADD= ${LIBUTIL}
LDADD= -lutil
MAN= disklabel.8 disklabel.5
+
CLEANFILES+=manual.c
+.if defined(NOMAN)
+manual.c:
+ echo 'char manpage[] = "Sorry. No man page.";' > manual.c
+.else
manual.c: disklabel.cat8
(echo 'char manpage[] = "\\'; \
sed -e 's/[\\"]/\\&/g' -e 's/$$/\\n\\/' disklabel.cat8; \
echo '";' ) > manual.c
+.endif
.if (${MACHINE} == "amiga")
CFLAGS+= -D${MACHINE}