1993-07-07 23:07:02 +00:00
|
|
|
LIB = man
|
|
|
|
|
1996-06-24 04:26:21 +00:00
|
|
|
.if exists(${.OBJDIR})
|
|
|
|
CONFH= ${.OBJDIR}/config.h
|
1993-07-21 17:18:04 +00:00
|
|
|
.else
|
|
|
|
CONFH= ${.CURDIR}/config.h
|
|
|
|
.endif
|
|
|
|
|
1994-03-05 13:48:38 +00:00
|
|
|
NOPROFILE= YES
|
1993-07-21 17:18:04 +00:00
|
|
|
|
1994-03-05 13:48:38 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_COMPRESS -DALT_SYSTEMS
|
1993-07-21 17:18:04 +00:00
|
|
|
CLEANFILES+= ${CONFH}
|
1994-08-25 08:36:26 +00:00
|
|
|
SRCS = util.c gripes.c ${CONFH}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1994-08-25 08:36:26 +00:00
|
|
|
libman.a:: ${CONFH}
|
1993-07-16 06:46:42 +00:00
|
|
|
|
1993-07-07 23:07:02 +00:00
|
|
|
install:
|
|
|
|
@echo -n
|
|
|
|
|
1994-08-25 08:36:26 +00:00
|
|
|
${CONFH}: ${.CURDIR}/config.h_dist ${.CURDIR}/../Makefile.inc
|
1993-07-16 06:46:42 +00:00
|
|
|
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},' \
|
1994-03-05 13:48:38 +00:00
|
|
|
-e 's,%compress%,${compress},' \
|
|
|
|
-e 's,%compext%,${compext},' \
|
1993-07-21 17:18:04 +00:00
|
|
|
${.CURDIR}/config.h_dist > ${CONFH}
|
1993-07-16 06:46:42 +00:00
|
|
|
|
1993-07-07 23:07:02 +00:00
|
|
|
.include <bsd.lib.mk>
|