all repos — fluxbox @ 0861f3a9073ccd016302af26ff992fa19331a02d

custom fork of the fluxbox windowmanager

nls/lv_LV/Makefile.am (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# nls/lv_LV/Makefile.am for Fluxbox - www.fluxbox.org

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 $* 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 generated-$*.m; \
	fi