summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/man/lib/Makefile
blob: aa45037ab06c3e946a352b3eaf32221be28c2980 (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
33
LIB = man

.if exists(${.OBJDIR})
CONFH=  ${.OBJDIR}/config.h
.else
CONFH=  ${.CURDIR}/config.h
.endif

NOPROFILE=	YES

CFLAGS+= -I${.CURDIR} -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_COMPRESS -DALT_SYSTEMS
CLEANFILES+=	${CONFH}
SRCS =	util.c gripes.c ${CONFH}

libman.a:: ${CONFH}

install:
	@echo -n

${CONFH}: ${.CURDIR}/config.h_dist ${.CURDIR}/../Makefile.inc
	sed -e 's,%apropos%,${apropos},' -e 's,%whatis%,${whatis},' \
	    -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
	    -e 's,%nroff%,${nroff},' -e 's,%tbl%,${tbl},' \
	    -e 's,%col%,${col},' -e 's,%pic%,${pic},' \
	    -e 's,%eqn%,${eqn},' -e 's,%neqn%,${neqn},' \
	    -e 's,%vgrind%,${vgrind},' -e 's,%refer%,${refer},' \
	    -e 's,%grap%,${grap},' -e 's,%zcat%,${zcat},' \
	    -e 's,%manpath_config_file%,${manpath_config_file},' \
	    -e 's,%compress%,${compress},' \
	    -e 's,%compext%,${compext},' \
        ${.CURDIR}/config.h_dist > ${CONFH}

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud