summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1c08824..0e76cb4 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@
FS_BASEPATH ?= $(HOME)/tremulous
FS_HOMEBASE ?= .tremulous
+TREMULOUS ?= tremulous
Q3MAP ?= q3map2
Q3MAP_FLAGS += -fs_basepath $(FS_BASEPATH) -fs_homebase $(FS_HOMEBASE) \
@@ -29,10 +30,12 @@ PARTS := maps/p0_master.map \
maps/p3_dretchpwner.map \
maps/p4_thepress.map \
maps/p5_euclid.map \
- maps/p6_engineering.map
+ maps/p6_engineering.map \
+ maps/p7_nsa.map
WHOLE := maps/analmango
-.DEFAULT_GOAL := $(WHOLE).bsp
+MAP ?= analmango
+.DEFAULT_GOAL := maps/$(MAP).bsp
-include Makefile.local
@@ -44,6 +47,12 @@ analmango.pk3: $(WHOLE).bsp
zip -r9 $@ maps/analmango.bsp scripts sound textures models
#
+# Testing a map
+#
+test: maps/$(MAP).bsp
+ $(TREMULOUS) +devmap $(MAP)
+
+#
# Assembling the complete .map from parts
#
@@ -68,4 +77,4 @@ clean:
rm -f maps/*.bsp
rm -f $(WHOLE).*
-.PHONY: clean default
+.PHONY: clean test