# Generated automatically from Makefile.in by configure.
# Main makefile for GNU NLS utilities.
# Copyright (C) 1995 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU 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, USA.

PACKAGE = gettext
VERSION = 0.10

SHELL = /bin/sh


srcdir = .

prefix = $(DJDIR)
gettextsrcdir = $(prefix)/share/gettext

INSTALL = c:/djgpp/bin/ginstall -c
INSTALL_DATA = ${INSTALL} -m 644
MAKEINFO = makeinfo

DISTFILES = COPYING ChangeLog DISCLAIM INSTALL Makefile.in ABOUT-NLS NEWS \
README THANKS TODO acconfig.h aclocal.m4 config.h-in configure configure.in \
install-sh mkinstalldirs stamp-h.in AUTHORS  BUGS

SUBDIRS = doc lib intl src po misc checks

all: all-local all-recursive

# The install goal here is something special.  Because the intl/Makefile
# is used verbatim in other packages we cannot change it for our special
# needs.  So we introduce a special installation goal.
install: install-src-recursive install-src-local

uninstall: uninstall-recursive uninstall-local

check TAGS ID all-recursive install-recursive install-src-recursive \
uninstall-recursive mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive: Makefile config.h
	for subdir in $(SUBDIRS); do \
	  target=`echo $@ | sed 's/-recursive//'`; \
	  echo making $$target in $$subdir; \
	  (cd $$subdir && $(MAKE) $$target) \
	    || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"

all-local: ABOUT-NLS

ABOUT-NLS: $(srcdir)/doc/nls.texi
	rm -f $(srcdir)/ABOUT-NLS \
	  && $(MAKEINFO) --output=$(srcdir)/ABOUT-NLS --no-header \
	    --no-validate $(srcdir)/doc/nls.texi

install-src-local: all-local
	$(srcdir)/mkinstalldirs $(gettextsrcdir)
	cd $(srcdir) && \
	  ( $(INSTALL_DATA) ABOUT-NLS $(gettextsrcdir)/root-ABOUT-NLS; \
	    $(INSTALL_DATA) aclocal.m4 $(gettextsrcdir)/aclocal.m4 )

uninstall-local:
	rm -f $(gettextsrcdir)/root-ABOUT-NLS $(gettextsrcdir)/aclocal.m4

distdir = $(PACKAGE)-$(VERSION)
dist dist-gettext: ABOUT-NLS Makefile
	rm -fr $(distdir)
	mkdir $(distdir)
	chmod 777 $(distdir)
	for file in $(DISTFILES); do \
	  ln $(srcdir)/$$file $(distdir) 2> /dev/null \
	    || cp -p $(srcdir)/$$file $(distdir); \
	done
	for subdir in $(SUBDIRS); do \
	  mkdir $(distdir)/$$subdir || exit 1; \
	  chmod 777 $(distdir)/$$subdir; \
	  (cd $$subdir && $(MAKE) dist-gettext) || exit 1; \
	done
	tar zchovf $(distdir).tar.gz $(distdir)
	rm -fr $(distdir)

tags: TAGS
id: ID

mostlyclean: mostlyclean-recursive mostlyclean-local

clean: clean-recursive clean-local

distclean: distclean-recursive distclean-local
	rm -f config.status

maintainer-clean: maintainer-clean-recursive maintainer-clean-local
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."
	rm -f config.status

mostlyclean-local:

clean-local: mostlyclean-local

distclean-local: clean-local
	rm -f Makefile config.cache config.h config.log stamp-h tupdate.perl

maintainer-clean-local: distclean-local

check:

dvi info:
	cd doc && $(MAKE) $@

# For understanding the following see the autoconf manual.
configure: configure.in aclocal.m4
	cd $(srcdir) && rm -f configure && autoconf

# autoheader might not change config.h-in
config.h-in: stamp-h.in
stamp-h.in: configure.in acconfig.h
	test ! -f config.h-in || chmod +w config.h-in
	cd $(srcdir) && autoheader
	cd $(srcdir) && rm -f stamp-h.in && echo timestamp > stamp-h.in

#config.status might not change config.h
# Don't rerun config.status if we just configured.
config.h: stamp-h
stamp-h: config.h-in config.status
	test ! -f stamp-h || ./config.status
	echo timestamp > stamp-h

Makefile: Makefile.in config.status
	./config.status

config.status: configure config.h-in
	./config.status --recheck

# 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.
.NOEXPORT:
