1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/src/intl/gettext/Makefile

105 lines
2.7 KiB
Makefile
Raw Normal View History

2005-10-19 22:00:35 -04:00
top_builddir=../../..
include $(top_builddir)/Makefile.config
localedir = $(datadir)/locale
builddir = $(top_builddir)/src/intl/gettext
CFLAGS += $(GETTEXT_CFLAGS)
OBJS = \
bindtextdom.o \
dcgettext.o \
dcigettext.o \
dcngettext.o \
dgettext.o \
dngettext.o \
explodename.o \
finddomain.o \
gettext.o \
intl-compat.o \
l10nflist.o \
libintl.o \
loadmsgcat.o \
localcharset.o \
localealias.o \
ngettext.o \
plural.o \
textdomain.o
# $(builddir)/charset.alias: $(srcdir)config.charset
$(builddir)/charset.alias: $(srcdir)config.charset
$(SHELL) $(srcdir)config.charset '$(host)' > $@.new
mv $@.new $@
# FIXME: Building plural.c from plural.y on the fly doesn't work
YACC = $(INTLBISON) -y -d
YFLAGS = --name-prefix=gettext__
plural.c: plural.y
.SUFFIXES: .y .c
.y.c:
$(YACC) $(YFLAGS) --output $@ $<
rm -f $*.h
2005-09-27 15:11:28 -04:00
install-local: $(builddir)/charset.alias all
2005-10-26 08:19:32 -04:00
@if test '$(CONFIG_NLS)' = yes; then \
temp=$(DESTDIR)$(libdir)/t-charset.alias; \
dest=$(DESTDIR)$(libdir)/charset.alias; \
if test -f $(DESTDIR)$(libdir)/charset.alias; then \
orig=$(DESTDIR)$(libdir)/charset.alias; \
sed -f ref-add.sed $$orig > $$temp; \
$(INSTALL_DATA) $$temp $$dest; \
rm -f $$temp; \
else \
if test $(GLIBC21) = no; then \
$(MKINSTALLDIRS) $(DESTDIR)$(libdir); \
orig=charset.alias; \
sed -f ref-add.sed $$orig > $$temp; \
$(INSTALL_DATA) $$temp $$dest; \
rm -f $$temp; \
fi; \
fi; \
$(MKINSTALLDIRS) $(DESTDIR)$(localedir); \
test -f $(DESTDIR)$(localedir)/locale.alias \
&& orig=$(DESTDIR)$(localedir)/locale.alias \
|| orig=$(srcdir)locale.alias; \
temp=$(DESTDIR)$(localedir)/t-locale.alias; \
dest=$(DESTDIR)$(localedir)/locale.alias; \
sed -f ref-add.sed $$orig > $$temp; \
$(INSTALL_DATA) $$temp $$dest; \
rm -f $$temp; \
else \
: ; \
fi
2005-09-27 15:11:28 -04:00
uninstall-local:
@if test '$(CONFIG_NLS)' = yes; then \
if test -f $(DESTDIR)$(libdir)/charset.alias; then \
temp=$(DESTDIR)$(libdir)/t-charset.alias; \
dest=$(DESTDIR)$(libdir)/charset.alias; \
sed -f ref-del.sed $$dest > $$temp; \
if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
rm -f $$dest; \
else \
$(INSTALL_DATA) $$temp $$dest; \
fi; \
rm -f $$temp; \
fi; \
if test -f $(DESTDIR)$(localedir)/locale.alias; then \
temp=$(DESTDIR)$(localedir)/t-locale.alias; \
dest=$(DESTDIR)$(localedir)/locale.alias; \
sed -f ref-del.sed $$dest > $$temp; \
if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
rm -f $$dest; \
else \
$(INSTALL_DATA) $$temp $$dest; \
fi; \
rm -f $$temp; \
fi; \
else \
: ; \
fi
include $(top_srcdir)/Makefile.lib