ngie 5dd12ae640 usr.bin/fortune: convert to OBJTOP/SRCTOP idioms
- Use OBJTOP/SRCTOP-relative paths when looking for include files and
  strfile.
- Add FORTUNES_OBJ and FORTUNES_SRC to abbreviate usr.bin/fortune
  pathing.

This is being done to simplify make output/idioms.

MFC after:	1 week
Reviewed by:	bdrewery
Sponsored by:	Dell EMC Isilon
Differential Revision:	D9916
2017-03-08 05:31:54 +00:00

23 lines
474 B
Makefile

# @(#)Makefile 8.2 (Berkeley) 4/19/94
# $FreeBSD$
DB= fortunes freebsd-tips murphy startrek zippy
# TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, COMMENT OUT THE
# NEXT LINE.
DB+= limerick murphy-o gerrold.limerick
BLDS= ${DB:S/$/.dat/}
FILES= ${DB} ${BLDS}
CLEANFILES+=${BLDS}
FILESDIR= ${SHAREDIR}/games/fortune
.for f in ${DB}
$f.dat: $f
PATH=$$PATH:/usr/bin:${FORTUNE_OBJ}/strfile \
strfile -Cs ${.ALLSRC} ${.TARGET}
.endfor
.include <bsd.prog.mk>