Fixed bogus existence test related to searching for a nearby obj
directory. config.h is always in the current (= object) directory, so don't search for it. config.h is not a source for the library, so don't put it in SRCS and don't make the library depend on it. Don't put unused flags in CFLAGS. Simplify using INTERNALLIB*.
This commit is contained in:
parent
67036295bc
commit
7a57462e37
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24790
@ -1,23 +1,14 @@
|
||||
LIB = man
|
||||
LIB= man
|
||||
INTERNALLIB= true
|
||||
INTERNALSTATICLIB= true
|
||||
|
||||
.if exists(${.OBJDIR})
|
||||
CONFH= ${.OBJDIR}/config.h
|
||||
.else
|
||||
CONFH= ${.CURDIR}/config.h
|
||||
.endif
|
||||
CFLAGS+= -DSTDC_HEADERS
|
||||
CLEANFILES+= config.h
|
||||
SRCS= gripes.c util.c
|
||||
|
||||
NOPROFILE= YES
|
||||
all: config.h
|
||||
|
||||
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
|
||||
config.h: ${.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},' \
|
||||
@ -28,6 +19,6 @@ ${CONFH}: ${.CURDIR}/config.h_dist ${.CURDIR}/../Makefile.inc
|
||||
-e 's,%manpath_config_file%,${manpath_config_file},' \
|
||||
-e 's,%compress%,${compress},' \
|
||||
-e 's,%compext%,${compext},' \
|
||||
${.CURDIR}/config.h_dist > ${CONFH}
|
||||
${.CURDIR}/config.h_dist > ${.TARGET}
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user