Have FatMessages macro mkdir -p the destination directory, and have Amiga front end use macro

This commit is contained in:
Rob Kendrick (fatigue) 2012-11-03 14:03:34 +00:00
parent 58202b2dfd
commit cf8b05fe0f
2 changed files with 2 additions and 1 deletions

View File

@ -649,6 +649,7 @@ FAT_LANGUAGES=de en fr it nl
# 2 = Destination directory (where resources being installed, creates en/Messages etc)
define split_install_messages
$(foreach LANG, $(FAT_LANGUAGES), @echo MSGSPLIT: $(1)/$(LANG) to $(2)
$(Q)mkdir -p $(2)/$(LANG)
$(Q)$(PERL) utils/split-messages.pl $(LANG) $(1) < resources/FatMessages > $(2)/$(LANG)/Messages
)
endef

View File

@ -133,7 +133,7 @@ netsurf.lha: $(EXETARGET)
$(Q)cp amiga/pkg/fitr $(AMIGA_INSTALL_TARGET_DIR)/NetSurf
$(Q)cp amiga/pkg/drawer.info $(AMIGA_INSTALL_TARGET_DIR)/NetSurf.info
$(Q)cp amiga/pkg/AutoInstall $(AMIGA_INSTALL_TARGET_DIR)
$(Q)$(foreach AMIGA_LANGUAGE, $(AMIGA_LANGUAGES_MESSAGES), perl utils/split-messages.pl $(AMIGA_LANGUAGE) ami < resources/FatMessages >$(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources/$(AMIGA_LANGUAGE)/Messages;)
$(call split_install_messages, ami, $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources/)
ifeq ($(HOST),amiga)
$(Q)mkdir $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Libs
$(Q)cp $(AMIGA_LIBS) $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Libs