Ensure split messages are cleaned up

This commit is contained in:
Vincent Sanders 2013-04-28 22:09:03 +01:00
parent 8df67ca801
commit 1dd8601e3f
1 changed files with 11 additions and 0 deletions

View File

@ -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)