blob: 78a3fe36c90ed727f3871c63d7c381c2e131a42b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $OpenBSD: Makefile,v 1.70 2021/09/20 20:23:44 deraadt Exp $
PROG= disklabel
SRCS= disklabel.c dkcksum.c editor.c manual.c
DPADD= ${LIBUTIL}
LDADD= -lutil
MAN= disklabel.8 disklabel.5
CLEANFILES += disklabel.cat8 manual.c
.include <bsd.own.mk>
.ifdef NOMAN
manual.c:
(echo 'const unsigned char manpage[] = {'; \
echo 'no manual' | gzip -9c | hexdump -ve '"0x" 1/1 "%02x,"'; \
echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c
.else
disklabel.cat8: disklabel.8
mandoc -Tascii ${.ALLSRC} > ${.TARGET}
manual.c: disklabel.cat8
(echo 'const unsigned char manpage[] = {'; \
cat disklabel.cat8 | gzip -9c | hexdump -ve '"0x" 1/1 "%02x,"'; \
echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c
.endif
.if ${MACHINE} == "sparc64"
CFLAGS+= -DSUN_CYLCHECK -DSUN_AAT0
.endif
.include <bsd.prog.mk>
|