openbox/nls/C/Makefile.am

51 lines
2 KiB
Text
Raw Normal View History

2002-05-25 01:07:58 +00:00
# nls/C/Makefile.am for Blackbox - an X11 Window Manager
2002-04-11 03:20:38 +00:00
NLSTEST = @NLS@
2002-05-24 23:49:04 +00:00
CLEANFILES = blackbox.cat
2002-04-11 03:20:38 +00:00
MAINTAINERCLEANFILES = Makefile.in Translation.m
DISTCLEANFILES = Translation.m
2002-05-24 23:49:04 +00:00
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
2002-04-11 03:20:38 +00:00
2002-05-25 01:07:58 +00:00
all-local: Translation.m blackbox.cat
2002-05-24 23:49:04 +00:00
install-data-local: blackbox.cat
2002-04-11 03:20:38 +00:00
@if test x$(NLSTEST) = "x-DNLS"; then \
2002-05-25 01:07:58 +00:00
echo "Installing catalog in $(DESTDIR)$(pkgdatadir)/nls/C"; \
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/nls/C; \
$(INSTALL_DATA) blackbox.cat $(DESTDIR)$(pkgdatadir)/nls/C; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
ln -f -ss C $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
ln -f -s C $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/en_US; \
ln -f -s C $(DESTDIR)$(pkgdatadir)/nls/en_US; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/en_GB; \
ln -f -s C $(DESTDIR)$(pkgdatadir)/nls/en_GB; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/en; \
ln -f -s C $(DESTDIR)$(pkgdatadir)/nls/en; \
2002-04-11 03:20:38 +00:00
fi
uninstall-local:
@if test x$(NLSTEST) = "x-DNLS"; then \
2002-05-25 01:07:58 +00:00
rm -f $(DESTDIR)$(pkgdatadir)/nls/C/blackbox.cat; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/en_US; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/en; \
rmdir $(DESTDIR)$(pkgdatadir)/nls/C; \
2002-04-11 03:20:38 +00:00
fi
2002-05-25 01:07:58 +00:00
# note... when adding new catalogs... you do not need the
# header=../blackbox-nls.hh which is passed to awk... we
# only need to generate it once.
2002-04-11 03:20:38 +00:00
Translation.m: $(MFILES)
2002-05-25 01:07:58 +00:00
awk -f @srcdir@/../convert.awk header=../blackbox-nls.hh \
output=Translation.m $(MFILES)
2002-04-11 03:20:38 +00:00
2002-05-24 23:49:04 +00:00
blackbox.cat: Translation.m
2002-04-11 03:20:38 +00:00
@if test x$(NLSTEST) = "x-DNLS"; then \
2002-05-24 23:49:04 +00:00
$(gencat_cmd) blackbox.cat Translation.m; \
2002-04-11 03:20:38 +00:00
fi
distclean-local:
rm -f *\~