summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2013-04-28 22:09:03 +0100
committerVincent Sanders <vince@kyllikki.org>2013-04-28 22:09:03 +0100
commit1dd8601e3f23b079912111e66e07d89378c30c5a (patch)
treec239c006c84d2dbc5674674e707097c7f7404d29 /Makefile
parent8df67ca8010a6e321fa3447dc4e306bbe460a2e3 (diff)
downloadnetsurf-1dd8601e3f23b079912111e66e07d89378c30c5a.tar.gz
netsurf-1dd8601e3f23b079912111e66e07d89378c30c5a.tar.bz2
Ensure split messages are cleaned up
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2044cd943..0ae5b4ab6 100644
--- a/Makefile
+++ b/Makefile
@@ -593,6 +593,7 @@ endif
clean-target:
$(VQ)echo " CLEAN: $(EXETARGET)"
$(Q)$(RM) $(EXETARGET)
+ $(call clean_install_messages, !NetSurf/Resources)
clean-testament:
$(VQ)echo " CLEAN: utils/testament.h"
@@ -747,6 +748,16 @@ define split_install_messages
)
endef
+# Clean Message target
+# 1 = Destination directory (where resources being installed, creates en/Messages etc)
+# 2 = suffix after language name
+define clean_install_messages
+ $(foreach LANG, $(FAT_LANGUAGES), @echo MSGCLEAN: $(LANG) in $(1)
+ $(Q)$(RM) -f $(1)$(2)/$(LANG)/Messages
+ )
+endef
+
+
# Target installs executable on the host system
install: all-program install-$(TARGET)