mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 21:13:11 +01:00
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
This commit is contained in:
parent
05de3f339a
commit
cbd30a72ca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314893
@ -1,3 +1,6 @@
|
||||
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
||||
.endif
|
||||
# $FreeBSD$
|
||||
|
||||
FORTUNE_SRC= ${SRCTOP}/usr.bin/fortune
|
||||
FORTUNE_OBJ= ${OBJTOP}/usr.bin/fortune
|
||||
|
||||
.include "${SRCTOP}/usr.bin/Makefile.inc"
|
||||
|
@ -15,7 +15,7 @@ FILESDIR= ${SHAREDIR}/games/fortune
|
||||
|
||||
.for f in ${DB}
|
||||
$f.dat: $f
|
||||
PATH=$$PATH:/usr/bin:${.OBJDIR}/../strfile \
|
||||
PATH=$$PATH:/usr/bin:${FORTUNE_OBJ}/strfile \
|
||||
strfile -Cs ${.ALLSRC} ${.TARGET}
|
||||
.endfor
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PROG= fortune
|
||||
MAN= fortune.6
|
||||
CFLAGS+=-DDEBUG -I${.CURDIR}/../strfile
|
||||
CFLAGS+=-DDEBUG -I${FORTUNE_SRC}/strfile
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
|
@ -3,6 +3,6 @@
|
||||
|
||||
PROG= unstr
|
||||
MAN=
|
||||
CFLAGS+= -I${.CURDIR}/../strfile
|
||||
CFLAGS+= -I${FORTUNE_SRC}/strfile
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user