summaryrefslogtreecommitdiff
path: root/nls/es_ES/Makefile.am
blob: d7d2f0284287bf4ad77d641925ecdd155b60feb5 (plain)
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
# nls/es_ES/Makefile.am for Blackbox-0.61.x - an X11 Window Manager

NLSTEST = @NLS@
CLEANFILES = blackbox.cat
MAINTAINERCLEANFILES = Makefile.in Translation.m
MFILES = BaseDisplay.m Basemenu.m Configmenu.m Icon.m Image.m Screen.m Slit.m Toolbar.m Window.m Windowmenu.m Workspace.m Workspacemenu.m blackbox.m common.m main.m bsetroot.m
EXTRA_DIST=$(MFILES)
all-local: blackbox.cat
install-data-local: blackbox.cat
	@if test x$(NLSTEST) = "x-DNLS"; then \
		echo "Installing catalog in $(DESTDIR)$(pkgdatadir)/nls/es_ES"; \
		$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/nls/es_ES; \
		$(INSTALL_DATA) blackbox.cat $(DESTDIR)$(pkgdatadir)/nls/es_ES; \
		rm -f $(DESTDIR)$(pkgdatadir)/nls/es; \
		ln -fs es_ES $(DESTDIR)$(pkgdatadir)/nls/es; \
	fi
uninstall-local:
	@if test x$(NLSTEST) = "x-DNLS"; then \
		rm -f $(DESTDIR)$(pkgdatadir)/nls/es_ES/blackbox.cat; \
		rm -f $(DESTDIR)$(pkgdatadir)/nls/es; \
		rmdir $(DESTDIR)$(pkgdatadir)/nls/es_ES; \
	fi

Translation.m: $(MFILES)
	@if test x$(NLSTEST) = "x-DNLS"; then \
		rm -f Translation.m; \
		awk -f ../convert.awk output=Translation.m $(MFILES); \
	fi

blackbox.cat: Translation.m
	@if test x$(NLSTEST) = "x-DNLS"; then \
		LANG=es_ES $(gencat_cmd) blackbox.cat Translation.m; \
	fi