adventure(6): Separate hostprog.
authorzrj <rimvydas.jasinskas@gmail.com>
Wed, 25 Apr 2018 16:18:06 +0000 (19:18 +0300)
committerzrj <zrj@dragonflybsd.org>
Wed, 25 Apr 2018 18:19:04 +0000 (21:19 +0300)
games/adventure/Makefile
games/adventure/Makefile.inc [new file with mode: 0644]
games/adventure/adventure/Makefile [copied from games/adventure/Makefile with 67% similarity]
games/adventure/setup/Makefile [new file with mode: 0644]

index c128f5e..4f49693 100644 (file)
@@ -1,14 +1,3 @@
-#      @(#)Makefile    8.1 (Berkeley) 6/12/93
-# $FreeBSD: src/games/adventure/Makefile,v 1.7.6.1 2001/04/25 09:28:42 ru Exp $
-
-PROG=  adventure
-SRCS=  main.c init.c done.c save.c subr.c vocab.c wizard.c io.c data.c crc.c
-MAN=   adventure.6
-CLEANFILES=data.c setup.nx setup.no
-
-build-tools: setup.nx
-
-data.c: glorkz setup.nx
-       ./setup.nx ${.CURDIR}/glorkz > data.c
-
-.include <bsd.prog.mk>
+SUBDIR=                setup
+SUBDIR+=       adventure
+.include <bsd.subdir.mk>
diff --git a/games/adventure/Makefile.inc b/games/adventure/Makefile.inc
new file mode 100644 (file)
index 0000000..01b5f23
--- /dev/null
@@ -0,0 +1 @@
+.include "../Makefile.inc"
similarity index 67%
copy from games/adventure/Makefile
copy to games/adventure/adventure/Makefile
index c128f5e..d2f8d3c 100644 (file)
@@ -1,14 +1,14 @@
 #      @(#)Makefile    8.1 (Berkeley) 6/12/93
 # $FreeBSD: src/games/adventure/Makefile,v 1.7.6.1 2001/04/25 09:28:42 ru Exp $
 
+.PATH: ${.CURDIR}/..
+
 PROG=  adventure
 SRCS=  main.c init.c done.c save.c subr.c vocab.c wizard.c io.c data.c crc.c
 MAN=   adventure.6
-CLEANFILES=data.c setup.nx setup.no
-
-build-tools: setup.nx
+CLEANFILES=data.c
 
-data.c: glorkz setup.nx
-       ./setup.nx ${.CURDIR}/glorkz > data.c
+data.c: glorkz setup.c
+       ${.OBJDIR}/../setup/setup.nx ${.CURDIR}/../glorkz > data.c
 
 .include <bsd.prog.mk>
diff --git a/games/adventure/setup/Makefile b/games/adventure/setup/Makefile
new file mode 100644 (file)
index 0000000..c47b1fc
--- /dev/null
@@ -0,0 +1,9 @@
+.PATH: ${.CURDIR}/..
+
+PROG=  setup
+CFLAGS+=-I${.CURDIR}/..
+
+# this setup is used in place, it is not installed anywhere
+install:
+
+.include <bsd.hostprog.mk>