summaryrefslogtreecommitdiff
path: root/sbin/disklabel/Makefile
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-04-05 17:03:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-04-05 17:03:38 +0000
commit0875215feb7ef9fdc3504c3dc2d6b4741e432907 (patch)
treefe60ee80f46198c8db849d70f1635c3ad5050a6d /sbin/disklabel/Makefile
parentf0e8d25b9a003c1fb8df1a357b306fb7ede79828 (diff)
permit tree build with NOMAN is set
Diffstat (limited to 'sbin/disklabel/Makefile')
-rw-r--r--sbin/disklabel/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/sbin/disklabel/Makefile b/sbin/disklabel/Makefile
index 1d5946a8df0..a2793976d1a 100644
--- a/sbin/disklabel/Makefile
+++ b/sbin/disklabel/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.24 2001/02/05 10:16:18 art Exp $
+# $OpenBSD: Makefile,v 1.25 2001/04/05 17:03:37 deraadt Exp $
PROG= disklabel
SRCS= disklabel.c dkcksum.c editor.c manual.c
@@ -8,10 +8,18 @@ MAN= disklabel.8 disklabel.5
CLEANFILES+=manual.c
+
+.ifdef NOMAN
+manual.c:
+ (echo 'char manpage[] = "\\'; \
+ echo "no manual"; \
+ echo '";' ) > 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}