Cleaned up the Makefile to look nicer and not require a lot of hacks

This commit is contained in:
Nate Williams 1993-08-04 21:00:46 +00:00
parent 9e5ebc8c71
commit 501584c759
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240

View File

@ -1,24 +1,15 @@
.if exists(${.CURDIR}/obj)
TARG= ${.CURDIR}/obj/makewhatis
.else
TARG= ${.CURDIR}/makewhatis
.endif
# @(#)Makefile 5.6 (Berkeley) 6/23/90
all: ${TARG}
NOMAN= noman
CLEANFILES= makewhatis
depend rcsfreeze tags all:
@echo -n
beforeinstall: makewhatis
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/makewhatis.sh ${DESTDIR}${BINDIR}/makewhatis
cleandir: clean
cd ${.CURDIR}; rm -rf obj;
.include <bsd.prog.mk>
clean:
@rm -f ${TARG}
makewhatis: makewhatis.sh
sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' \
${.CURDIR}/makewhatis.sh > makewhatis
install:
install -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
${TARG}: ${.CURDIR}/makewhatis.sh
sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' ${.CURDIR}/makewhatis.sh > ${TARG}
.include "../Makefile.inc"