diff options
author | bde <bde@FreeBSD.org> | 1997-04-10 16:04:43 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-04-10 16:04:43 +0000 |
commit | 3d7da76d795cb378e1436c9e891f3627a0730354 (patch) | |
tree | 63961f984b8ab5b20eecf122143cbca02f80b177 | |
parent | 2635010c09d1b2cfb8ef5d09812f5659e7cfab7c (diff) | |
download | FreeBSD-src-3d7da76d795cb378e1436c9e891f3627a0730354.zip FreeBSD-src-3d7da76d795cb378e1436c9e891f3627a0730354.tar.gz |
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*.
-rw-r--r-- | gnu/usr.bin/man/lib/Makefile | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/gnu/usr.bin/man/lib/Makefile b/gnu/usr.bin/man/lib/Makefile index aa45037..525bb1e 100644 --- a/gnu/usr.bin/man/lib/Makefile +++ b/gnu/usr.bin/man/lib/Makefile @@ -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> |