diff options
Diffstat (limited to 'nls/lv_LV/Makefile.am')
-rw-r--r-- | nls/lv_LV/Makefile.am | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/nls/lv_LV/Makefile.am b/nls/lv_LV/Makefile.am index 16b90c6..c79d80d 100644 --- a/nls/lv_LV/Makefile.am +++ b/nls/lv_LV/Makefile.am | |||
@@ -1,30 +1,46 @@ | |||
1 | # nls/lv_LV/Makefile.am for Fluxbox - www.fluxbox.org | 1 | # nls/lv_LV/Makefile.am for Fluxbox - www.fluxbox.org |
2 | 2 | ||
3 | THE_LANG = lv_LV | 3 | THE_LANG = lv_LV |
4 | SRC_CODESET = ISO-8859-13 | ||
5 | DEST_CODESETS = ISO-8859-13 UTF-8 | ||
4 | 6 | ||
5 | LOCALE_PATH = @LOCALE_PATH@ | 7 | LOCALE_PATH = @LOCALE_PATH@ |
6 | NLSTEST = @NLS@ | 8 | NLSTEST = @NLS@ |
7 | CLEANFILES = fluxbox.cat | ||
8 | MAINTAINERCLEANFILES = Makefile.in | ||
9 | MFILES = Translation.m | 9 | MFILES = Translation.m |
10 | EXTRA_DIST= $(MFILES) | 10 | GENERATED_MFILES = $(patsubst %,generated-%.m,$(DEST_CODESETS)) |
11 | MAINTAINERCLEANFILES = Makefile.in $(GENERATED_MFILES) | ||
12 | CATFILES = $(patsubst %,fluxbox-%.cat,$(DEST_CODESETS)) | ||
11 | 13 | ||
12 | all-local: fluxbox.cat | 14 | # We distribute the generated files so that users don't need iconv |
13 | install-data-local: fluxbox.cat | 15 | EXTRA_DIST= $(MFILES) $(GENERATED_MFILES) |
16 | CLEANFILES = $(CATFILES) | ||
17 | |||
18 | all-local: $(CATFILES) | ||
19 | install-data-local: $(CATFILES) | ||
14 | @if test x$(NLSTEST) = "x-DNLS"; then \ | 20 | @if test x$(NLSTEST) = "x-DNLS"; then \ |
15 | echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG)"; \ | 21 | for codeset in $(DEST_CODESETS); do \ |
16 | $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG); \ | 22 | echo "Installing catalog in $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}"; \ |
17 | $(INSTALL_DATA) fluxbox.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG); \ | 23 | $(mkinstalldirs) $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ |
24 | $(INSTALL_DATA) fluxbox-$${codeset}.cat $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ | ||
25 | done; \ | ||
18 | fi | 26 | fi |
19 | 27 | ||
28 | # not part of the normal build process | ||
29 | translations: $(GENERATED_MFILES) | ||
30 | |||
31 | generated-%.m: Translation.m | ||
32 | iconv -f $(SRC_CODESET) -t $* Translation.m | sed s/$(SRC_CODESET)/$*/ > $@ | ||
33 | |||
20 | uninstall-local: | 34 | uninstall-local: |
21 | @if test x$(NLSTEST) = "x-DNLS"; then \ | 35 | @if test x$(NLSTEST) = "x-DNLS"; then \ |
22 | rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG)/fluxbox.cat; \ | 36 | for codeset in $(DEST_CODESETS); do \ |
23 | rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG); \ | 37 | rm -f $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}/fluxbox.cat; \ |
38 | rmdir $(DESTDIR)$(LOCALE_PATH)/$(THE_LANG).$${codeset}; \ | ||
39 | done; \ | ||
24 | fi | 40 | fi |
25 | 41 | ||
26 | fluxbox.cat: Translation.m | 42 | fluxbox-%.cat: generated-%.m Translation.m |
27 | @if test x$(NLSTEST) = "x-DNLS"; then \ | 43 | @if test x$(NLSTEST) = "x-DNLS"; then \ |
28 | $(gencat_cmd) fluxbox.cat Translation.m; \ | 44 | echo "Creating catfile for $*"; \ |
45 | $(gencat_cmd) fluxbox-$*.cat generated-$*.m; \ | ||
29 | fi | 46 | fi |
30 | |||