From 121bd23862ad49e2acb3d47bc19cad5294383e4e Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 19 Feb 2014 18:13:27 +0100 Subject: 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 06e6795..57c2fa0 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 5ba8ecb..7028636 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 b8cea59..b9c3256 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 5f82b03..d80f35e 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 083ce45..23b96c2 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 e4fad34..0809d17 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 50edd55..ee89119 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 5b0ffd9..5b6061a 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 1b0259c..5cf85b9 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 8dff87b..11767d3 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 e5275c0..faa4a76 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 63cbdc8..c4bb63a 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 e39b89a..495d038 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 0c995fe..700c454 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 95f716a..6049661 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 987e595..90b05a1 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 5981b4c..45c25eb 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 41f0951..0317d65 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 fce2af6..4901047 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 7ed4cf3..fd766db 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 bcc0e3e..3ba5322 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 e4c0331..9f180d2 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 061a880..1f6c8f9 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 27b0732..193f9b2 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 0000000..5e98393 --- /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 a8ed3f6..8428256 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 92f54e6..355c35c 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 e425903..b6c4da9 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 ae376d3..3634470 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 7e44788..621f59e 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 c4ebbe2..084f377 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 d70514e..8224ba9 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 c0c1fa1..bc2b46c 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 b4998fc..73ad6d4 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 -- cgit v0.11.2