summaryrefslogtreecommitdiffstats
path: root/fortune/datfiles/Makefile
diff options
context:
space:
mode:
authorapb <apb@NetBSD.org>2008-09-26 18:23:09 +0000
committerapb <apb@NetBSD.org>2008-09-26 18:23:09 +0000
commit08501e9d73781aee6bb3ae7a0c54f1b4ab36ffdf (patch)
tree75a153e70226b5bd9be8a47c82ad9cc73916f851 /fortune/datfiles/Makefile
parent2ebd9fd06a7f6efb7e24dab6b2433837514ad097 (diff)
downloadbsdgames-darwin-08501e9d73781aee6bb3ae7a0c54f1b4ab36ffdf.tar.gz
bsdgames-darwin-08501e9d73781aee6bb3ae7a0c54f1b4ab36ffdf.tar.zst
bsdgames-darwin-08501e9d73781aee6bb3ae7a0c54f1b4ab36ffdf.zip
Build strfile both as a host tool and as an installed program:
* in games/fortune/strfile/Makefile, build strfile as a regular program instead of as a host tool; * add tools/strfile directory to build strfile as a host tool; * in tools/Makefile, add strfile to SUBDIR list; * in BSD.*.mk, define TOOL_STRFILE variable; * in games/fortune/datfiles/Makefile, use TOOL_STRFILE when creating databases at build time; * in distrib/sets/lists/games/mi, mention usr/games/strfile.
Diffstat (limited to 'fortune/datfiles/Makefile')
-rw-r--r--fortune/datfiles/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/fortune/datfiles/Makefile b/fortune/datfiles/Makefile
index d9b44a35..10b07db8 100644
--- a/fortune/datfiles/Makefile
+++ b/fortune/datfiles/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2008/03/21 21:09:48 reed Exp $
+# $NetBSD: Makefile,v 1.38 2008/09/26 18:23:09 apb Exp $
# @(#)Makefile 8.2 (Berkeley) 4/19/94
.include <bsd.own.mk> # for INSTALL_OFFENSIVE_FORTUNES
@@ -24,8 +24,7 @@ TYPE= fake
CLEANFILES+=${DATFILES}
-STRFILEDIR!=cd $(.CURDIR)/../strfile; ${PRINTOBJDIR}
-STRFILE=${STRFILEDIR}/strfile
+STRFILE=${TOOL_STRFILE}
.if ${MKSHARE} != "no"
FILES=${SRCFILES} ${DATFILES}