summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1c08824..98204e5 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) \
@@ -12,7 +13,7 @@ Q3MAP_FLAGS += -fs_basepath $(FS_BASEPATH) -fs_homebase $(FS_HOMEBASE) \
Q3MAP_BSP += -leaktest -meta
Q3MAP_VIS += -vis
Q3MAP_LIGHT += -light -bounce 1 -dirty -bouncegrid -dirtscale 0.3 \
- -dirtdepth 32 -fastbounce -patchshadows -samples 8 \
+ -dirtdepth 32 -fastbounce -patchshadows -samples 3 \
-samplesize 8 -cpma
FAST ?= 0
@@ -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_uncommon.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