diff options
author | 2001-01-18 15:05:20 +0000 | |
---|---|---|
committer | 2001-01-18 15:05:20 +0000 | |
commit | 87e08be71cb64699197902e00d163b03cba5f44b (patch) | |
tree | 89e15ee5910fe26bb93fbae9625a9b85db424253 | |
parent | remove signal races, using flags (diff) | |
download | wireguard-openbsd-87e08be71cb64699197902e00d163b03cba5f44b.tar.xz wireguard-openbsd-87e08be71cb64699197902e00d163b03cba5f44b.zip |
Fix NOMAN builds.
-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} |