From 4c980c7b10bbd81fffb058638427a06db75cdfe5 Mon Sep 17 00:00:00 2001 From: mazze Date: Sun, 17 Aug 2014 16:18:49 +0000 Subject: [PATCH] Build catalogs for native FlexCat with build-system's FlexCat. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@49468 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- tools/flexcat/src/mmakefile.src | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tools/flexcat/src/mmakefile.src b/tools/flexcat/src/mmakefile.src index cfb2967b3b..1c2b92fa20 100644 --- a/tools/flexcat/src/mmakefile.src +++ b/tools/flexcat/src/mmakefile.src @@ -2,7 +2,7 @@ include $(TOP)/config/make.cfg -#MM- tools-flexcat : tools-flexcat-bin tools-flexcat-sd +#MM- tools-flexcat : tools-flexcat-bin tools-flexcat-sd tools-flexcat-locale #MM tools-flexcat-bin : includes linklibs FILES := \ @@ -33,4 +33,17 @@ USER_CFLAGS := -DNO_INLINE_STDARG -D__BSD_VISIBLE=1 -DAMIGA %copy_dir_recursive mmake=tools-flexcat-sd src=sd dst=$(EXEDIR)/Lib + +TARGETDIR := $(EXEDIR)/Catalogs +LANGUAGES := $(basename $(notdir $(call WILDCARD,$(SRCDIR)/$(CURDIR)/locale/*.po))) +CATALOGS := $(addprefix $(TARGETDIR)/,$(addsuffix /FlexCat.catalog,$(LANGUAGES))) + +#MM +tools-flexcat-locale : $(CATALOGS) + +$(TARGETDIR)/%/FlexCat.catalog: $(SRCDIR)/$(CURDIR)/locale/%.po + $(ECHO) "Building catalog $@" + $(MKDIR) $(dir $@) + $(FLEXCAT) POFILE $< CATALOG $@ + %common -- 2.11.4.GIT