Initial import from FreeBSD RELENG_4:
[dragonfly.git] / gnu / usr.bin / man / lib / Makefile
1 # $FreeBSD: src/gnu/usr.bin/man/lib/Makefile,v 1.11.6.1 2002/07/19 18:46:24 ru Exp $
2
3 LIB=    man
4 INTERNALLIB= true
5
6 CFLAGS+= -DSTDC_HEADERS
7 CLEANFILES+= config.h
8 SRCS=   gripes.c util.c
9
10 # Kludge to create config.h for other modules.  The library itself doesn't
11 # depend on config.h.
12 SRCS+=  config.h
13
14 config.h: ${.CURDIR}/config.h_dist ${.CURDIR}/../Makefile.inc
15         sed -e 's,%apropos%,${apropos},' -e 's,%whatis%,${whatis},' \
16             -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
17             -e 's,%nroff%,${nroff},' -e 's,%tbl%,${tbl},' \
18             -e 's,%col%,${col},' -e 's,%pic%,${pic},' \
19             -e 's,%eqn%,${eqn},' -e 's,%neqn%,${neqn},' \
20             -e 's,%vgrind%,${vgrind},' -e 's,%refer%,${refer},' \
21             -e 's,%grap%,${grap},' -e 's,%zcat%,${zcat},' \
22             -e 's,%manpath_config_file%,${manpath_config_file},' \
23             -e 's,%compress%,${compress},' \
24             -e 's,%compext%,${compext},' \
25             ${.CURDIR}/config.h_dist > ${.TARGET}
26
27 .include <bsd.lib.mk>