aboutsummaryrefslogtreecommitdiff
path: root/nls/C/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'nls/C/Makefile.am')
-rw-r--r--nls/C/Makefile.am41
1 files changed, 27 insertions, 14 deletions
diff --git a/nls/C/Makefile.am b/nls/C/Makefile.am
index be588ad..2f429ad 100644
--- a/nls/C/Makefile.am
+++ b/nls/C/Makefile.am
@@ -1,16 +1,19 @@
1# nls/C/Makefile.am for Blackbox-0.61.x - an X11 Window Manager 1# nls/C/Makefile.am for Fluxbox - an X11 Window Manager
2
3THE_LANG = C
4# no CODESET
2 5
3NLSTEST = @NLS@ 6NLSTEST = @NLS@
4CLEANFILES = blackbox.cat 7CLEANFILES = fluxbox.cat
5MAINTAINERCLEANFILES = Makefile.in Translation.m 8MAINTAINERCLEANFILES = 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 9MFILES = BaseDisplay.m Basemenu.m Configmenu.m Icon.m Image.m Screen.m Slit.m Toolbar.m Window.m Windowmenu.m Workspace.m Workspacemenu.m fluxbox.m common.m main.m bsetroot.m
7EXTRA_DIST= $(MFILES) 10EXTRA_DIST= $(MFILES)
8all-local: blackbox.cat 11all-local: fluxbox.cat
9install-data-local: blackbox.cat 12install-data-local: fluxbox.cat
10 @if test x$(NLSTEST) = "x-DNLS"; then \ 13 @if test x$(NLSTEST) = "x-DNLS"; then \
11 echo "Installing catalog in $(DESTDIR)$(pkgdatadir)/nls/C"; \ 14 echo "Installing catalog in $(DESTDIR)$(pkgdatadir)/nls/$(THE_LANG)"; \
12 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/nls/C; \ 15 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/nls/$(THE_LANG); \
13 $(INSTALL_DATA) blackbox.cat $(DESTDIR)$(pkgdatadir)/nls/C; \ 16 $(INSTALL_DATA) fluxbox.cat $(DESTDIR)$(pkgdatadir)/nls/$(THE_LANG); \
14 rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \ 17 rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
15 ln -fs C $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \ 18 ln -fs C $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
16 rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \ 19 rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
@@ -22,25 +25,35 @@ install-data-local: blackbox.cat
22 fi 25 fi
23uninstall-local: 26uninstall-local:
24 @if test x$(NLSTEST) = "x-DNLS"; then \ 27 @if test x$(NLSTEST) = "x-DNLS"; then \
25 rm -f $(DESTDIR)$(pkgdatadir)/nls/C/blackbox.cat; \ 28 rm -f $(DESTDIR)$(pkgdatadir)/nls/$(THE_LANG)/fluxbox.cat; \
26 rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \ 29 rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
27 rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \ 30 rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
28 rm -f $(DESTDIR)$(pkgdatadir)/nls/en_US; \ 31 rm -f $(DESTDIR)$(pkgdatadir)/nls/en_US; \
29 rm -f $(DESTDIR)$(pkgdatadir)/nls/en; \ 32 rm -f $(DESTDIR)$(pkgdatadir)/nls/en; \
30 rmdir $(DESTDIR)$(pkgdatadir)/nls/C; \ 33 rmdir $(DESTDIR)$(pkgdatadir)/nls/$(THE_LANG); \
31 fi 34 fi
32 35
33# note... when adding new catalogs... you do not need the 36# note... when adding new catalogs... you do not need the
34# header=../blackbox-nls.hh which is passed to awk... we 37# header=../fluxbox-nls.hh which is passed to awk... we
35# only need to generate it once. 38# only need to generate it once.
36 39
37Translation.m: $(MFILES) 40Translation.m: $(MFILES)
38 @if test x$(NLSTEST) = "x-DNLS"; then \ 41 @if test x$(NLSTEST) = "x-DNLS"; then \
39 awk -f ../convert.awk header=../blackbox-nls.hh \ 42 rm -f Translation.m; \
43 echo "//This file is generated from nls/C" > ../fluxbox-nls.hh; \
44 echo "#ifndef BLACKBOX_NLS_HH" >> ../fluxbox-nls.hh; \
45 echo "#define BLACKBOX_NLS_HH" >> ../fluxbox-nls.hh; \
46 echo "namespace FBNLS {" >> ../fluxbox-nls.hh; \
47 echo "enum {" >> ../fluxbox-nls.hh; \
48 awk -f ../convert.awk header=../fluxbox-nls.hh \
40 output=Translation.m $(MFILES); \ 49 output=Translation.m $(MFILES); \
50 echo " dummy_not_used = 0 //just for the ending" >> ../fluxbox-nls.hh; \
51 echo "}; //end enum" >> ../fluxbox-nls.hh; \
52 echo "}; //end namespace" >> ../fluxbox-nls.hh; \
53 echo "#endif //BLACKBOX_NLS_HH" >> ../fluxbox-nls.hh; \
41 fi 54 fi
42 55
43blackbox.cat: Translation.m 56fluxbox.cat: Translation.m
44 @if test x$(NLSTEST) = "x-DNLS"; then \ 57 @if test x$(NLSTEST) = "x-DNLS"; then \
45 $(gencat_cmd) blackbox.cat Translation.m; \ 58 $(gencat_cmd) fluxbox.cat Translation.m; \
46 fi 59 fi