diff options
author | jkh <jkh@FreeBSD.org> | 1993-07-21 17:18:04 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1993-07-21 17:18:04 +0000 |
commit | ee78129063eab8399fd4e5e3e03235da3e5045a9 (patch) | |
tree | e8b4f9159842648036778c0621df0225af325c88 /gnu/usr.bin/man/manpath | |
parent | 12b53687ad0c0e22cb713896c56e184ea75dd71e (diff) | |
download | FreeBSD-src-ee78129063eab8399fd4e5e3e03235da3e5045a9.zip FreeBSD-src-ee78129063eab8399fd4e5e3e03235da3e5045a9.tar.gz |
Changes to allow man to work with or without obj dirs.
Diffstat (limited to 'gnu/usr.bin/man/manpath')
-rw-r--r-- | gnu/usr.bin/man/manpath/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/usr.bin/man/manpath/Makefile b/gnu/usr.bin/man/manpath/Makefile index d8eb66d..49d487d 100644 --- a/gnu/usr.bin/man/manpath/Makefile +++ b/gnu/usr.bin/man/manpath/Makefile @@ -1,5 +1,4 @@ PROG= manpath -MAN1= manpath.1 SRCS= manpath.c .if exists(${.CURDIR}/../lib/obj) @@ -8,13 +7,20 @@ LDADD= -L${.CURDIR}/../lib/obj -lman LDADD= -L${.CURDIR}/../lib/ -lman .endif +.if exists(${.CURDIR}/obj) +MAN1=${.CURDIR}/obj/manpath.1 +.else +MAN1=${.CURDIR}/manpath.1 +.endif + +DPADD+= ${MAN1} CFLAGS+= -I${.CURDIR}/../lib -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS -DALT_SYSTEMS -manpath.1: manpath.man +${MAN1}: ${.CURDIR}/manpath.man sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \ -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \ -e 's,%manpath_config_file%,${manpath_config_file},' \ - manpath.man > manpath.1 + ${.CURDIR}/manpath.man > ${MAN1} afterinstall: install -c -o bin -g bin -m 555 ${.CURDIR}/manpath.config ${DESTDIR}${manpath_config_file} |