fluxbox/nls/C/Makefile.am

57 lines
2.3 KiB
Text
Raw Normal View History

2001-12-11 20:47:02 +00:00
# nls/C/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/C"; \
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/nls/C; \
$(INSTALL_DATA) blackbox.cat $(DESTDIR)$(pkgdatadir)/nls/C; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
ln -fs C $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
ln -fs C $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/en_US; \
ln -fs C $(DESTDIR)$(pkgdatadir)/nls/en_US; \
rm -f $(DESTDIR)$(pkgdatadir)/nls/en; \
ln -fs C $(DESTDIR)$(pkgdatadir)/nls/en; \
fi
uninstall-local:
@if test x$(NLSTEST) = "x-DNLS"; then \
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; \
fi
# 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.
Translation.m: $(MFILES)
@if test x$(NLSTEST) = "x-DNLS"; then \
2002-04-12 15:15:46 +00:00
rm -f Translation.m; \
2002-04-04 18:04:19 +00:00
echo -e "//This file is generated from nls/C" > ../blackbox-nls.hh; \
echo -e "#ifndef BLACKBOX_NLS_HH" >> ../blackbox-nls.hh; \
echo -e "#define BLACKBOX_NLS_HH" >> ../blackbox-nls.hh; \
echo -e "namespace FBNLS {" >> ../blackbox-nls.hh; \
echo -e "enum {" >> ../blackbox-nls.hh; \
2001-12-11 20:47:02 +00:00
awk -f ../convert.awk header=../blackbox-nls.hh \
output=Translation.m $(MFILES); \
2002-04-04 18:20:33 +00:00
echo -e " dummy_not_used = 0 //just for the ending" >> ../blackbox-nls.hh; \
2002-04-04 18:04:19 +00:00
echo -e "}; //end enum\n" >> ../blackbox-nls.hh; \
echo -e "}; //end namespace\n" >> ../blackbox-nls.hh; \
echo -e "#endif //BLACKBOX_NLS_HH\n" >> ../blackbox-nls.hh; \
2001-12-11 20:47:02 +00:00
fi
blackbox.cat: Translation.m
@if test x$(NLSTEST) = "x-DNLS"; then \
$(gencat_cmd) blackbox.cat Translation.m; \
fi