new nls from bb-cvs
[mikachu/openbox.git] / nls / C / Makefile.am
1 # nls/C/Makefile.am for Blackbox - an X11 Window Manager
2
3 NLSTEST = @NLS@
4 CLEANFILES = blackbox.cat
5 MAINTAINERCLEANFILES = Makefile.in Translation.m
6 DISTCLEANFILES = Translation.m
7 MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdir@/Icon.m @srcdir@/Image.m @srcdir@/Screen.m @srcdir@/Slit.m @srcdir@/Toolbar.m @srcdir@/Window.m @srcdir@/Windowmenu.m @srcdir@/Workspace.m @srcdir@/Workspacemenu.m @srcdir@/blackbox.m @srcdir@/common.m @srcdir@/main.m @srcdir@/bsetroot.m
8
9 all-local: Translation.m blackbox.cat
10 install-data-local: blackbox.cat
11         @if test x$(NLSTEST) = "x-DNLS"; then \
12                 echo "Installing catalog in $(DESTDIR)$(pkgdatadir)/nls/C"; \
13                 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/nls/C; \
14                 $(INSTALL_DATA) blackbox.cat $(DESTDIR)$(pkgdatadir)/nls/C; \
15                 rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
16                 ln -f -ss C $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
17                 rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
18                 ln -f -s C $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
19                 rm -f $(DESTDIR)$(pkgdatadir)/nls/en_US; \
20                 ln -f -s C $(DESTDIR)$(pkgdatadir)/nls/en_US; \
21                 rm -f $(DESTDIR)$(pkgdatadir)/nls/en_GB; \
22                 ln -f -s C $(DESTDIR)$(pkgdatadir)/nls/en_GB; \
23                 rm -f $(DESTDIR)$(pkgdatadir)/nls/en; \
24                 ln -f -s C $(DESTDIR)$(pkgdatadir)/nls/en; \
25         fi
26 uninstall-local:
27         @if test x$(NLSTEST) = "x-DNLS"; then \
28                 rm -f $(DESTDIR)$(pkgdatadir)/nls/C/blackbox.cat; \
29                 rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
30                 rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
31                 rm -f $(DESTDIR)$(pkgdatadir)/nls/en_US; \
32                 rm -f $(DESTDIR)$(pkgdatadir)/nls/en; \
33                 rmdir $(DESTDIR)$(pkgdatadir)/nls/C; \
34         fi
35
36 # note... when adding new catalogs... you do not need the
37 # header=../blackbox-nls.hh which is passed to awk... we
38 # only need to generate it once.
39
40 Translation.m: $(MFILES)
41         awk -f @srcdir@/../convert.awk header=../blackbox-nls.hh \
42                 output=Translation.m $(MFILES)
43
44 blackbox.cat: Translation.m
45         @if test x$(NLSTEST) = "x-DNLS"; then \
46                 $(gencat_cmd) blackbox.cat Translation.m; \
47         fi
48
49 distclean-local:
50         rm -f *\~