summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorSimon Howard2010-01-05 17:20:58 +0000
committerSimon Howard2010-01-05 17:20:58 +0000
commit6fb7afc47cb78584d19ccb10284dd20243b06540 (patch)
tree380bb66f99c02261d05be2ed55458367653e6d34 /pkg
parent860a17497bdc189f78f5a0bca000a0451d5ae624 (diff)
downloadchocolate-doom-6fb7afc47cb78584d19ccb10284dd20243b06540.tar.gz
chocolate-doom-6fb7afc47cb78584d19ccb10284dd20243b06540.tar.bz2
chocolate-doom-6fb7afc47cb78584d19ccb10284dd20243b06540.zip
Add "clean" target to package makefiles.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1791
Diffstat (limited to 'pkg')
-rw-r--r--pkg/win32/GNUmakefile8
-rw-r--r--pkg/wince/GNUmakefile3
2 files changed, 10 insertions, 1 deletions
diff --git a/pkg/win32/GNUmakefile b/pkg/win32/GNUmakefile
index 93c6abe1..626f1845 100644
--- a/pkg/win32/GNUmakefile
+++ b/pkg/win32/GNUmakefile
@@ -11,7 +11,9 @@ DLL_FILES=$(TOPLEVEL)/src/SDL.dll \
$(TOPLEVEL)/src/SDL_mixer.dll \
$(TOPLEVEL)/src/SDL_net.dll
-$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-win32.zip : staging
+ZIP=$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-win32.zip
+
+$(ZIP) : staging
zip -j -r $@ staging/
staging: $(EXE_FILES) $(DLL_FILES) $(patsubst %,../../%,$(DOC_FILES))
@@ -24,3 +26,7 @@ staging: $(EXE_FILES) $(DLL_FILES) $(patsubst %,../../%,$(DOC_FILES))
unix2dos staging/$$f.txt; \
done
+clean:
+ rm -f $(ZIP)
+ rm -rf staging
+
diff --git a/pkg/wince/GNUmakefile b/pkg/wince/GNUmakefile
index 073346d7..c237922e 100644
--- a/pkg/wince/GNUmakefile
+++ b/pkg/wince/GNUmakefile
@@ -8,3 +8,6 @@ OUTPUT_FILE=$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).cab
$(OUTPUT_FILE) : $(CONFIG_FILE) $(DEPS)
./wince-cabgen $< $@
+clean:
+ rm -f $(OUTPUT_FILE)
+