From 2173012dbc60284ede5d52ea939973f935fc01ed Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Wed, 28 Dec 2016 18:58:37 +0100 Subject: Add testing to the Makefile. --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1c08824..c58ca69 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) \ @@ -32,7 +33,8 @@ PARTS := maps/p0_master.map \ maps/p6_engineering.map WHOLE := maps/analmango -.DEFAULT_GOAL := $(WHOLE).bsp +MAP ?= analmango +.DEFAULT_GOAL := maps/$(MAP).bsp -include Makefile.local @@ -43,6 +45,12 @@ WHOLE := maps/analmango 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 # -- cgit