summaryrefslogtreecommitdiffstats
path: root/dist.mak
diff options
context:
space:
mode:
authorGravatarGravatar Vas Crabb <vas@vastheman.com>2017-08-14 21:05:28 +1000
committerGravatarGravatar Vas Crabb <vas@vastheman.com>2017-08-14 21:05:28 +1000
commitd0258eb992fce803ec3941bc2b2191ccd7fac5b1 (patch) (github)
tree6874f3bf857a8ffc2c226b8d69f143fac33e1d93 /dist.mak
parentcebff96608c036c01b57404727de4caaa0031c8b (diff)
downloadmame-d0258eb992fce803ec3941bc2b2191ccd7fac5b1.tar.bz2
mame-d0258eb992fce803ec3941bc2b2191ccd7fac5b1.zip
add a clean target to dist.mak, mark targets phony (nw)
Diffstat (limited to 'dist.mak')
-rw-r--r--dist.mak13
1 files changed, 9 insertions, 4 deletions
diff --git a/dist.mak b/dist.mak
index 6951096a07c..6b893e876d9 100644
--- a/dist.mak
+++ b/dist.mak
@@ -113,12 +113,17 @@ COPY_FILES := $(addprefix $(STAGEDIR)/,$(COPIED_FILES))
all: $(COPY_BINARIES) $(COPY_FILES)
+clean:
+ $(SILENT) rm -rf $(STAGEDIR)
+
$(GEN_FOLDERS):
- -$(call MKDIR,$@)
+ $(call MKDIR,$@)
$(STAGEDIR)/%: $(BINDIR)/% | $(GEN_FOLDERS)
- -$(call COPY,$<,$@)
- strip $@
+ $(call COPY,$<,$@)
+ $(SILENT) strip $@
$(STAGEDIR)/%: % | $(GEN_FOLDERS)
- -$(call COPY,$<,$@)
+ $(call COPY,$<,$@)
+
+.PHONY: all clean