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

Converted src/intl/gettext/Makefile to ELBuild

This commit is contained in:
Petr Baudis 2005-09-16 04:20:14 +02:00
parent 1f0cd14e91
commit 1fd3bff6f3
3 changed files with 76 additions and 111 deletions

View File

@ -1276,7 +1276,6 @@ AC_OUTPUT([ \
src/document/Makefile \ src/document/Makefile \
src/encoding/Makefile \ src/encoding/Makefile \
src/intl/Makefile \ src/intl/Makefile \
src/intl/gettext/Makefile \
src/intl/gettext/ref-add.sed \ src/intl/gettext/ref-add.sed \
src/intl/gettext/ref-del.sed \ src/intl/gettext/ref-del.sed \
src/main/Makefile \ src/main/Makefile \

76
src/intl/gettext/Makefile Normal file
View File

@ -0,0 +1,76 @@
path_to_top=../../..
include $(path_to_top)/Makefile.config
localedir = $(datadir)/locale
builddir = $(top_builddir)/src/intl/gettext
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
# Do not forget to also add the .o to ../Makefile. Yes, it sucks.
all-l: $(OBJS)
$(builddir)/charset.alias: $(srcdir)/config.charset
$(SHELL) $(srcdir)/config.charset '@host@' > $@.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
install-l: $(builddir)/charset.alias all
@if test '@USE_INCLUDED_LIBINTL@' = 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
mv $@.new $@
include $(path_to_top)/Makefile.lib

View File

@ -1,110 +0,0 @@
## Process this file with automake to produce Makefile.in
## $Id: Makefile.am,v
include $(top_srcdir)/Makefile.base
EXTRA_DIST = TODO VERSION config.charset locale.alias plural.y
DISTCLEANFILES = charset.alias
localedir = $(datadir)/locale
builddir = $(top_builddir)/src/intl/gettext
noinst_LIBRARIES = libintl.a
libintl_a_SOURCES = \
bindtextdom.c \
dcgettext.c \
dcigettext.c \
dcngettext.c \
dgettext.c \
dngettext.c \
explodename.c \
finddomain.c \
gettext.c \
gettext.h \
gettextP.h \
hash-string.h \
intl-compat.c \
l10nflist.c \
libgettext.h \
libgnuintl.h \
libintl.c \
libintl.h \
loadinfo.h \
loadmsgcat.c \
localcharset.c \
localealias.c \
ngettext.c \
plural.c \
textdomain.c
$(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
.y.c:
$(YACC) $(YFLAGS) --output $@ $<
rm -f $*.h
install-data-local: $(builddir)/charset.alias all
@if test '@USE_INCLUDED_LIBINTL@' = 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
uninstall-local:
@if test '@USE_INCLUDED_LIBINTL@' = 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