shithub: choc

Download patch

ref: 6fb7afc47cb78584d19ccb10284dd20243b06540
parent: 860a17497bdc189f78f5a0bca000a0451d5ae624
author: Simon Howard <[email protected]>
date: Tue Jan 5 12:20:58 EST 2010

Add "clean" target to package makefiles.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1791

--- a/pkg/win32/GNUmakefile
+++ b/pkg/win32/GNUmakefile
@@ -11,7 +11,9 @@
           $(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))
@@ -23,4 +25,8 @@
 		cp $(TOPLEVEL)/$$f staging/$$f.txt;  \
 		unix2dos staging/$$f.txt;            \
 	done
+
+clean:
+	rm -f $(ZIP)
+	rm -rf staging
 
--- a/pkg/wince/GNUmakefile
+++ b/pkg/wince/GNUmakefile
@@ -8,3 +8,6 @@
 $(OUTPUT_FILE) : $(CONFIG_FILE) $(DEPS)
 	./wince-cabgen $< $@
 
+clean:
+	rm -f $(OUTPUT_FILE)
+