diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-18 15:05:21 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-18 15:05:21 +0000 |
commit | 6b2a402eb5f31d9f291eb6370e4ccd8d887b0f5d (patch) | |
tree | 7ab3818dcdd3d215c1ae05b223fee2b1ea4c5597 /sbin | |
parent | 467db1c46ae484ae48a740421c6e177309f4561c (diff) |
Fix NOMAN builds.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/disklabel/Makefile | 8 |
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} |