summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-01-18 15:07:25 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-01-18 15:07:25 +0000
commit61a7a0d87f440af8f9561a3345eb45597d2cc085 (patch)
tree65612cdbea90835d8ff1323368140b50151e6d2f
parent6b2a402eb5f31d9f291eb6370e4ccd8d887b0f5d (diff)
Fix NOMAN build.
-rw-r--r--sbin/fdisk/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/fdisk/Makefile b/sbin/fdisk/Makefile
index 99904ece833..25fa2cbb680 100644
--- a/sbin/fdisk/Makefile
+++ b/sbin/fdisk/Makefile
@@ -1,5 +1,5 @@
#
-# $OpenBSD: Makefile,v 1.13 2001/01/17 04:53:33 d Exp $
+# $OpenBSD: Makefile,v 1.14 2001/01/18 15:07:24 art Exp $
#
# Copyright (c) 1997 Tobias Weingartner
# All rights reserved.
@@ -37,10 +37,15 @@ DPADD= ${LIBUTIL}
LDADD= -lutil
CLEANFILES+=manual.c
+.if defined(NOMAN)
+manual.c:
+ echo 'char manpage[] = "Sorry. No man page.";' > manual.c
+.else
manual.c: fdisk.cat8
(echo 'char manpage[] = "\\'; \
sed -e 's/[\\"]/\\&/g' -e 's/$$/\\n\\/' fdisk.cat8; \
echo '";' ) > manual.c
+.endif
.else
NOPROG=yes
.endif