pkgsrc/games/xtux/patches/patch-aa
minskim f397d02683 Remove build dependency on gmake by not using "-C". Fixes a build
problem on Linux, which was caused by hardcoded "gmake".
2004-04-08 19:17:04 +00:00

49 lines
1.2 KiB
Text

$NetBSD: patch-aa,v 1.2 2004/04/08 19:17:04 minskim Exp $
--- Makefile.orig 2000-11-08 08:38:09.000000000 -0600
+++ Makefile
@@ -5,7 +5,7 @@
#============================================================#
#Change this to where you want to put the data directory.
-DATADIR = `pwd`/data
+DATADIR = ${PREFIX}/share/xtux/data
#Eg you might want to put the data files here......
#DATADIR = /usr/share/games/xtux
@@ -14,29 +14,27 @@ CM_SRC_DIR = src/common
SV_SRC_DIR = src/server
CL_SRC_DIR = src/client
-MAKE = @make -C
-
all: common client server
clean:
- $(MAKE) $(CM_SRC_DIR) clean
- $(MAKE) $(SV_SRC_DIR) clean
- $(MAKE) $(CL_SRC_DIR) clean
+ cd ${CM_SRC_DIR} && ${MAKE} clean
+ cd ${SV_SRC_DIR} && ${MAKE} clean
+ cd ${CL_SRC_DIR} && ${MAKE} clean
#Apps
common:
@echo
@echo " ************* Building COMMON lib *************"
@echo
- $(MAKE) $(CM_SRC_DIR) $(MFLAGS)
+ cd ${CM_SRC_DIR} && ${MAKE} $(MFLAGS)
server:
@echo
@echo " ************* Building SERVER *************"
@echo
- $(MAKE) $(SV_SRC_DIR) $(MFLAGS)
+ cd ${SV_SRC_DIR} && ${MAKE} $(MFLAGS)
client:
@echo
@echo " ************* Building CLIENT *************"
@echo
- $(MAKE) $(CL_SRC_DIR) $(MFLAGS)
+ cd ${CL_SRC_DIR} && ${MAKE} $(MFLAGS)