summaryrefslogtreecommitdiff
path: root/nls/C/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'nls/C/Makefile.am')
-rw-r--r--nls/C/Makefile.am46
1 files changed, 46 insertions, 0 deletions
diff --git a/nls/C/Makefile.am b/nls/C/Makefile.am
new file mode 100644
index 0000000..be588ad
--- /dev/null
+++ b/nls/C/Makefile.am
@@ -0,0 +1,46 @@
1# nls/C/Makefile.am for Blackbox-0.61.x - an X11 Window Manager
2
3NLSTEST = @NLS@
4CLEANFILES = blackbox.cat
5MAINTAINERCLEANFILES = Makefile.in Translation.m
6MFILES = 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
7EXTRA_DIST= $(MFILES)
8all-local: blackbox.cat
9install-data-local: blackbox.cat
10 @if test x$(NLSTEST) = "x-DNLS"; then \
11 echo "Installing catalog in $(DESTDIR)$(pkgdatadir)/nls/C"; \
12 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/nls/C; \
13 $(INSTALL_DATA) blackbox.cat $(DESTDIR)$(pkgdatadir)/nls/C; \
14 rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
15 ln -fs C $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
16 rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
17 ln -fs C $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
18 rm -f $(DESTDIR)$(pkgdatadir)/nls/en_US; \
19 ln -fs C $(DESTDIR)$(pkgdatadir)/nls/en_US; \
20 rm -f $(DESTDIR)$(pkgdatadir)/nls/en; \
21 ln -fs C $(DESTDIR)$(pkgdatadir)/nls/en; \
22 fi
23uninstall-local:
24 @if test x$(NLSTEST) = "x-DNLS"; then \
25 rm -f $(DESTDIR)$(pkgdatadir)/nls/C/blackbox.cat; \
26 rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
27 rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
28 rm -f $(DESTDIR)$(pkgdatadir)/nls/en_US; \
29 rm -f $(DESTDIR)$(pkgdatadir)/nls/en; \
30 rmdir $(DESTDIR)$(pkgdatadir)/nls/C; \
31 fi
32
33# note... when adding new catalogs... you do not need the
34# header=../blackbox-nls.hh which is passed to awk... we
35# only need to generate it once.
36
37Translation.m: $(MFILES)
38 @if test x$(NLSTEST) = "x-DNLS"; then \
39 awk -f ../convert.awk header=../blackbox-nls.hh \
40 output=Translation.m $(MFILES); \
41 fi
42
43blackbox.cat: Translation.m
44 @if test x$(NLSTEST) = "x-DNLS"; then \
45 $(gencat_cmd) blackbox.cat Translation.m; \
46 fi