#
# You should have received a copy of the GNU Library General Public
# License along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
# USA.
# This Makefile has been modified from the original shipped with
# we do not need nor want), the ability to build a shared library
# (likewise), and a large number of heinous kludges.
-PACKAGE = @PACKAGE@
-VERSION = @VERSION@
-
-SHELL = /bin/sh
+SHELL = @SHELL@
srcdir = @srcdir@
VPATH = $(srcdir)
transform = @program_transform_name@
libdir = @libdir@
includedir = @includedir@
+datarootdir = @datarootdir@
datadir = @datadir@
localedir = $(datadir)/locale
-gettextsrcdir = $(datadir)/gettext/intl
aliaspath = $(localedir)
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-MKINSTALLDIRS = @MKINSTALLDIRS@
-mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
-
-l = @INTL_LIBTOOL_SUFFIX_PREFIX@
-
AR = ar
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
CC = @CC@
RANLIB = @RANLIB@
YACC = @INTLBISON@ -y -d
LIBS = @LIBS@
DEFS = -DHAVE_CONFIG_H
-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
+COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES)
HEADERS = \
gmo.h \
eval-plural.h \
localcharset.h \
relocatable.h \
- os2compat.h \
- libgnuintl.h.in
+ libgnuintl.h
SOURCES = \
bindtextdom.c \
dcgettext.c \
localename.c \
log.c \
osdep.c \
- os2compat.c \
intl-compat.c
OBJECTS = \
bindtextdom.o \
osdep.o \
intl-compat.o
+DEFS-dcigettext.o = -DLOCALEDIR="\"$(localedir)\""
+DEFS-localealias.o = -DLOCALE_ALIAS_PATH="\"$(aliaspath)\""
+DEFS-localcharset.o = -DLIBDIR="\"$(libdir)\""
+DEFS-relocatable.o = -DINSTALLDIR="\"$(libdir)\""
+
all: all-@USE_INCLUDED_LIBINTL@
-all-yes: libintl.a libintl.h
+all-yes: libintl.a libintl.h config.intl
all-no: # nothing
libintl.a: $(OBJECTS)
$(RANLIB) $@
libintl.h: $(srcdir)/libgnuintl.h
- cat $(srcdir)/libgnuintl.h > $@
+ cp $(srcdir)/libgnuintl.h $@
.SUFFIXES:
.SUFFIXES: .c .y .o
$(YACC) $(YFLAGS) --output $@ $<
rm -f $*.h
-INCLUDES = -I. -I$(srcdir) -I..
+INCLUDES = -I. -I$(srcdir)
check: all
installcheck:
uninstall:
+.PHONY: info dvi ps pdf html
+.PHONY: install-info install-dvi install-ps install-pdf install-html
+
info dvi ps pdf html:
+install-info install-dvi install-ps install-pdf install-html:
$(OBJECTS): config.h libintl.h
bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
localealias.o localcharset.o relocatable.o: relocatable.h
tags: TAGS
-
TAGS: $(HEADERS) $(SOURCES)
- here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
+ here=`pwd`; cd $(srcdir) && \
+ etags -o $$here/TAGS $(HEADERS) $(SOURCES)
ctags: CTAGS
-
CTAGS: $(HEADERS) $(SOURCES)
- here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
+ here=`pwd`; cd $(srcdir) && \
+ ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
id: ID
-
ID: $(HEADERS) $(SOURCES)
- here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
-
+ here=`pwd`; cd $(srcdir) && \
+ mkid -f$$here/ID $(HEADERS) $(SOURCES)
mostlyclean:
- rm -f *.a *.la *.o *.obj *.lo core core.*
- rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
- rm -f -r .libs _libs
+ rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
clean: mostlyclean
distclean: clean
+ rm -f config.status config.cache config.log config.intl config.h
rm -f Makefile ID TAGS
- if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
- rm -f ChangeLog.inst $(DISTFILES.normal); \
- else \
- : ; \
- fi
maintainer-clean: distclean
dist:
distdir:
-Makefile: Makefile.in config.status
- CONFIG_HEADERS= CONFIG_FILES=Makefile $(SHELL) ./config.status
-
-config.h: cstamp-h; @:
-cstamp-h: config.h.in config.status
- CONFIG_HEADERS=config.h CONFIG_FILES= $(SHELL) config.status
- echo timestamp > cstamp-h
-
-config.status: configure
- $(SHELL) config.status --recheck
+# Rules to rebuild the configuration
+
+Makefile: $(srcdir)/Makefile.in config.status
+ $(SHELL) ./config.status Makefile
+
+config.intl: $(srcdir)/config.intl.in config.status
+ $(SHELL) ./config.status config.intl
+
+config.status: $(srcdir)/configure
+ $(SHELL) ./config.status --recheck
+
+$(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
+ cd $(srcdir) && $(AUTOCONF)
+
+aclocal_deps = \
+ $(srcdir)/configure.ac \
+ $(srcdir)/../config/codeset.m4 \
+ $(srcdir)/../config/gettext.m4 \
+ $(srcdir)/../config/glibc21.m4 \
+ $(srcdir)/../config/iconv.m4 \
+ $(srcdir)/../config/intdiv0.m4 \
+ $(srcdir)/../config/inttypes-pri.m4 \
+ $(srcdir)/../config/inttypes.m4 \
+ $(srcdir)/../config/inttypes_h.m4 \
+ $(srcdir)/../config/lcmessage.m4 \
+ $(srcdir)/../config/lib-ld.m4 \
+ $(srcdir)/../config/lib-link.m4 \
+ $(srcdir)/../config/lib-prefix.m4 \
+ $(srcdir)/../config/nls.m4 \
+ $(srcdir)/../config/po.m4 \
+ $(srcdir)/../config/progtest.m4 \
+ $(srcdir)/../config/stdint_h.m4 \
+ $(srcdir)/../config/uintmax_t.m4 \
+ $(srcdir)/../config/ulonglong.m4
+
+$(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
+ cd $(srcdir) && $(ACLOCAL) -I ../config
+
+config.h: stamp-h1
+ test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
+
+stamp-h1: $(srcdir)/config.h.in config.status
+ -rm -f stamp-h1
+ $(SHELL) ./config.status config.h
+
+$(srcdir)/config.h.in: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
+ cd $(srcdir) && $(AUTOHEADER)
+ -rm -f stamp-h1
# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.