From 121bd23862ad49e2acb3d47bc19cad5294383e4e Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 19 Feb 2014 18:13:27 +0100 Subject: [PATCH] move shared build instructions for nls into a common file --- nls/be_BY/Makefile.am | 41 +---------------------------------------- nls/bg_BG/Makefile.am | 41 +---------------------------------------- nls/cs_CZ/Makefile.am | 41 +---------------------------------------- nls/da_DK/Makefile.am | 41 +---------------------------------------- nls/de_AT/Makefile.am | 41 +---------------------------------------- nls/de_CH/Makefile.am | 41 +---------------------------------------- nls/de_DE/Makefile.am | 41 +---------------------------------------- nls/el_GR/Makefile.am | 41 +---------------------------------------- nls/en_GB/Makefile.am | 41 +---------------------------------------- nls/en_US/Makefile.am | 41 +---------------------------------------- nls/es_AR/Makefile.am | 41 +---------------------------------------- nls/es_ES/Makefile.am | 41 +---------------------------------------- nls/et_EE/Makefile.am | 41 +---------------------------------------- nls/fi_FI/Makefile.am | 41 +---------------------------------------- nls/fr_CH/Makefile.am | 41 +---------------------------------------- nls/fr_FR/Makefile.am | 41 +---------------------------------------- nls/he_IL/Makefile.am | 41 +---------------------------------------- nls/it_IT/Makefile.am | 41 +---------------------------------------- nls/ja_JP/Makefile.am | 41 +---------------------------------------- nls/ko_KR/Makefile.am | 41 +---------------------------------------- nls/lv_LV/Makefile.am | 41 +---------------------------------------- nls/mk_MK/Makefile.am | 41 +---------------------------------------- nls/nb_NO/Makefile.am | 41 +---------------------------------------- nls/nl_NL/Makefile.am | 41 +---------------------------------------- nls/nls.mk | 40 ++++++++++++++++++++++++++++++++++++++++ nls/no_NO/Makefile.am | 41 +---------------------------------------- nls/pl_PL/Makefile.am | 41 +---------------------------------------- nls/pt_BR/Makefile.am | 41 +---------------------------------------- nls/pt_PT/Makefile.am | 41 +---------------------------------------- nls/ru_RU/Makefile.am | 41 +---------------------------------------- nls/sk_SK/Makefile.am | 41 +---------------------------------------- nls/sl_SI/Makefile.am | 41 +---------------------------------------- nls/sv_SE/Makefile.am | 41 +---------------------------------------- nls/zh_TW/Makefile.am | 41 +---------------------------------------- 34 files changed, 73 insertions(+), 1320 deletions(-) create mode 100644 nls/nls.mk diff --git a/nls/be_BY/Makefile.am b/nls/be_BY/Makefile.am index 06e67954..57c2fa0c 100644 --- a/nls/be_BY/Makefile.am +++ b/nls/be_BY/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = be_BY SRC_CODESET = CP1251 DEST_CODESETS = CP1251 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/bg_BG/Makefile.am b/nls/bg_BG/Makefile.am index 5ba8ecb8..70286361 100644 --- a/nls/bg_BG/Makefile.am +++ b/nls/bg_BG/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = bg_BG SRC_CODESET = CP1251 DEST_CODESETS = CP1251 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/cs_CZ/Makefile.am b/nls/cs_CZ/Makefile.am index b8cea595..b9c3256f 100644 --- a/nls/cs_CZ/Makefile.am +++ b/nls/cs_CZ/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = cs_CZ SRC_CODESET = ISO-8859-2 DEST_CODESETS = ISO-8859-2 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/da_DK/Makefile.am b/nls/da_DK/Makefile.am index 5f82b03f..d80f35e0 100644 --- a/nls/da_DK/Makefile.am +++ b/nls/da_DK/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = da_DK SRC_CODESET = ISO-8859-1 DEST_CODESETS = ISO-8859-1 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/de_AT/Makefile.am b/nls/de_AT/Makefile.am index 083ce45e..23b96c24 100644 --- a/nls/de_AT/Makefile.am +++ b/nls/de_AT/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = de_AT SRC_CODESET = ISO-8859-15 DEST_CODESETS = ISO-8859-15 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/de_CH/Makefile.am b/nls/de_CH/Makefile.am index e4fad340..0809d17c 100644 --- a/nls/de_CH/Makefile.am +++ b/nls/de_CH/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = de_CH SRC_CODESET = ISO-8859-15 DEST_CODESETS = ISO-8859-15 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/de_DE/Makefile.am b/nls/de_DE/Makefile.am index 50edd550..ee891197 100644 --- a/nls/de_DE/Makefile.am +++ b/nls/de_DE/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = de_DE SRC_CODESET = ISO-8859-15 DEST_CODESETS = ISO-8859-15 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/el_GR/Makefile.am b/nls/el_GR/Makefile.am index 5b0ffd9d..5b6061aa 100644 --- a/nls/el_GR/Makefile.am +++ b/nls/el_GR/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = el_GR SRC_CODESET = UTF-8 DEST_CODESETS = UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/en_GB/Makefile.am b/nls/en_GB/Makefile.am index 1b0259cc..5cf85b99 100644 --- a/nls/en_GB/Makefile.am +++ b/nls/en_GB/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = en_GB SRC_CODESET = ISO-8859-1 DEST_CODESETS = ISO-8859-1 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/en_US/Makefile.am b/nls/en_US/Makefile.am index 8dff87b7..11767d34 100644 --- a/nls/en_US/Makefile.am +++ b/nls/en_US/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = en_US SRC_CODESET = ISO-8859-1 DEST_CODESETS = ISO-8859-1 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/es_AR/Makefile.am b/nls/es_AR/Makefile.am index e5275c08..faa4a762 100644 --- a/nls/es_AR/Makefile.am +++ b/nls/es_AR/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = es_AR SRC_CODESET = ISO-8859-15 DEST_CODESETS = ISO-8859-15 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/es_ES/Makefile.am b/nls/es_ES/Makefile.am index 63cbdc88..c4bb63a4 100644 --- a/nls/es_ES/Makefile.am +++ b/nls/es_ES/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = es_ES SRC_CODESET = ISO-8859-15 DEST_CODESETS = ISO-8859-15 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/et_EE/Makefile.am b/nls/et_EE/Makefile.am index e39b89a7..495d0386 100644 --- a/nls/et_EE/Makefile.am +++ b/nls/et_EE/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = et_EE SRC_CODESET = ISO-8859-15 DEST_CODESETS = ISO-8859-15 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/fi_FI/Makefile.am b/nls/fi_FI/Makefile.am index 0c995fe1..700c4545 100644 --- a/nls/fi_FI/Makefile.am +++ b/nls/fi_FI/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = fi_FI SRC_CODESET = ISO-8859-1 DEST_CODESETS = ISO-8859-1 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/fr_CH/Makefile.am b/nls/fr_CH/Makefile.am index 95f716af..60496616 100644 --- a/nls/fr_CH/Makefile.am +++ b/nls/fr_CH/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = fr_CH SRC_CODESET = ISO-8859-15 DEST_CODESETS = ISO-8859-15 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/fr_FR/Makefile.am b/nls/fr_FR/Makefile.am index 987e5951..90b05a16 100644 --- a/nls/fr_FR/Makefile.am +++ b/nls/fr_FR/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = fr_FR SRC_CODESET = ISO-8859-15 DEST_CODESETS = ISO-8859-15 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/he_IL/Makefile.am b/nls/he_IL/Makefile.am index 5981b4c3..45c25eb8 100644 --- a/nls/he_IL/Makefile.am +++ b/nls/he_IL/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = he_IL SRC_CODESET = UTF-8 DEST_CODESETS = UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/it_IT/Makefile.am b/nls/it_IT/Makefile.am index 41f09517..0317d654 100644 --- a/nls/it_IT/Makefile.am +++ b/nls/it_IT/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = it_IT SRC_CODESET = ISO-8859-1 DEST_CODESETS = ISO-8859-1 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/ja_JP/Makefile.am b/nls/ja_JP/Makefile.am index fce2af65..4901047e 100644 --- a/nls/ja_JP/Makefile.am +++ b/nls/ja_JP/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = ja_JP SRC_CODESET = eucJP DEST_CODESETS = eucJP UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/ko_KR/Makefile.am b/nls/ko_KR/Makefile.am index 7ed4cf37..fd766dbc 100644 --- a/nls/ko_KR/Makefile.am +++ b/nls/ko_KR/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = ko_KR SRC_CODESET = UTF-8 DEST_CODESETS = UTF-8 EUC-KR -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/lv_LV/Makefile.am b/nls/lv_LV/Makefile.am index bcc0e3e1..3ba5322a 100644 --- a/nls/lv_LV/Makefile.am +++ b/nls/lv_LV/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = lv_LV SRC_CODESET = ISO-8859-13 DEST_CODESETS = ISO-8859-13 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/mk_MK/Makefile.am b/nls/mk_MK/Makefile.am index e4c03315..9f180d2f 100644 --- a/nls/mk_MK/Makefile.am +++ b/nls/mk_MK/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = mk_MK SRC_CODESET = UTF-8 DEST_CODESETS = UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/nb_NO/Makefile.am b/nls/nb_NO/Makefile.am index 061a8806..1f6c8f91 100644 --- a/nls/nb_NO/Makefile.am +++ b/nls/nb_NO/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = nb_NO SRC_CODESET = UTF-8 DEST_CODESETS = UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/nl_NL/Makefile.am b/nls/nl_NL/Makefile.am index 27b07322..193f9b2c 100644 --- a/nls/nl_NL/Makefile.am +++ b/nls/nl_NL/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = nl_NL SRC_CODESET = ISO-8859-15 DEST_CODESETS = ISO-8859-15 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/nls.mk b/nls/nls.mk new file mode 100644 index 00000000..5e983934 --- /dev/null +++ b/nls/nls.mk @@ -0,0 +1,40 @@ +LOCALE_PATH = @LOCALE_PATH@ +NLSTEST = @NLS@ +MFILES = Translation.m +GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) +MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) +CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) + +# We distribute the generated files so that users don't need iconv +EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) +CLEANFILES = $(CATFILES) + +all-local: $(CATFILES) +install-data-local: $(CATFILES) + @if test x$(NLSTEST) = "x-DNLS"; then \ + for codeset in $(DEST_CODESETS); do \ + echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ + $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ + $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ + done; \ + fi + +# not part of the normal build process +translations: $(GENERATED_MFILES) + +generated-%.m: Translation.m + iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ + +uninstall-local: + @if test x$(NLSTEST) = "x-DNLS"; then \ + for codeset in $(DEST_CODESETS); do \ + rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ + rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ + done; \ + fi + +fluxbox-%.cat: generated-%.m Translation.m + @if test x$(NLSTEST) = "x-DNLS"; then \ + echo "Creating catfile for $*"; \ + $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ + fi diff --git a/nls/no_NO/Makefile.am b/nls/no_NO/Makefile.am index a8ed3f6b..84282566 100644 --- a/nls/no_NO/Makefile.am +++ b/nls/no_NO/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = no_NO SRC_CODESET = ISO-8859-1 DEST_CODESETS = ISO-8859-1 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/pl_PL/Makefile.am b/nls/pl_PL/Makefile.am index 92f54e6b..355c35cb 100644 --- a/nls/pl_PL/Makefile.am +++ b/nls/pl_PL/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = pl_PL SRC_CODESET = ISO-8859-2 DEST_CODESETS = ISO-8859-2 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/pt_BR/Makefile.am b/nls/pt_BR/Makefile.am index e4259037..b6c4da9a 100644 --- a/nls/pt_BR/Makefile.am +++ b/nls/pt_BR/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = pt_BR SRC_CODESET = UTF-8 DEST_CODESETS = ISO-8859-1 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/pt_PT/Makefile.am b/nls/pt_PT/Makefile.am index ae376d3c..36344702 100644 --- a/nls/pt_PT/Makefile.am +++ b/nls/pt_PT/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = pt_PT SRC_CODESET = ISO-8859-1 DEST_CODESETS = ISO-8859-1 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/ru_RU/Makefile.am b/nls/ru_RU/Makefile.am index 7e447889..621f59e2 100644 --- a/nls/ru_RU/Makefile.am +++ b/nls/ru_RU/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = ru_RU SRC_CODESET = KOI8-R DEST_CODESETS = KOI8-R UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/sk_SK/Makefile.am b/nls/sk_SK/Makefile.am index c4ebbe24..084f3775 100644 --- a/nls/sk_SK/Makefile.am +++ b/nls/sk_SK/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = sk_SK SRC_CODESET = UTF-8 DEST_CODESETS = ISO-8859-2 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/sl_SI/Makefile.am b/nls/sl_SI/Makefile.am index d70514ea..8224ba94 100644 --- a/nls/sl_SI/Makefile.am +++ b/nls/sl_SI/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = sl_SI SRC_CODESET = ISO-8859-2 DEST_CODESETS = ISO-8859-2 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/sv_SE/Makefile.am b/nls/sv_SE/Makefile.am index c0c1fa19..bc2b46c3 100644 --- a/nls/sv_SE/Makefile.am +++ b/nls/sv_SE/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = sv_SE SRC_CODESET = ISO-8859-1 DEST_CODESETS = ISO-8859-1 UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk diff --git a/nls/zh_TW/Makefile.am b/nls/zh_TW/Makefile.am index b4998fc5..73ad6d48 100644 --- a/nls/zh_TW/Makefile.am +++ b/nls/zh_TW/Makefile.am @@ -4,43 +4,4 @@ THE_LANG = zh_TW SRC_CODESET = UTF-8 DEST_CODESETS = UTF-8 -LOCALE_PATH = @LOCALE_PATH@ -NLSTEST = @NLS@ -MFILES = Translation.m -GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) -MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) -CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) - -# We distribute the generated files so that users don't need iconv -EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) -CLEANFILES = $(CATFILES) - -all-local: $(CATFILES) -install-data-local: $(CATFILES) - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ - $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - done; \ - fi - -# not part of the normal build process -translations: $(GENERATED_MFILES) - -generated-%.m: Translation.m - iconv -f $(SRC_CODESET) -t $* $(srcdir)/Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ - -uninstall-local: - @if test x$(NLSTEST) = "x-DNLS"; then \ - for codeset in $(DEST_CODESETS); do \ - rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ - rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ - done; \ - fi - -fluxbox-%.cat: generated-%.m Translation.m - @if test x$(NLSTEST) = "x-DNLS"; then \ - echo "Creating catfile for $*"; \ - $(gencat_cmd) fluxbox-$*.cat $(srcdir)/generated-$*.m; \ - fi +include $(top_srcdir)/nls/nls.mk