2000-09-18 12:26:23 -04:00
|
|
|
################################################################
|
|
|
|
# Process this file with top-level configure script to produce Makefile
|
|
|
|
#
|
|
|
|
# Copyright 2000 Clark Cooper
|
|
|
|
#
|
|
|
|
# This file is part of EXPAT.
|
|
|
|
#
|
|
|
|
# EXPAT is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the License (based on the MIT/X license) contained
|
|
|
|
# in the file COPYING that comes with this distribution.
|
|
|
|
#
|
|
|
|
# EXPAT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
|
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
|
|
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
|
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
|
# SOFTWARE OR THE USE OR OTHER DEALINGS IN EXPAT.
|
|
|
|
#
|
|
|
|
# ---
|
|
|
|
# I started using automake, but
|
|
|
|
# 1) it seemed like overkill
|
|
|
|
# 2) I don't want all the GNU policies
|
|
|
|
# 3) I wanted more explicit control over what gets built
|
|
|
|
#
|
|
|
|
# So I'm doing my Makefile.in files manually. But a fair part is based
|
|
|
|
# on what I learned from perusing the Makefile.in's generated by automake,
|
|
|
|
# and the automake authors still get my kudos.
|
|
|
|
#
|
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
datadir = @datadir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
sharedstatedir = @sharedstatedir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
libdir = @libdir@
|
|
|
|
infodir = @infodir@
|
|
|
|
mandir = @mandir@
|
|
|
|
includedir = @includedir@
|
|
|
|
oldincludedir = /usr/include
|
|
|
|
|
|
|
|
top_builddir = .
|
|
|
|
|
|
|
|
|
|
|
|
AUTOCONF = autoconf
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
|
|
|
|
|
|
NORMAL_INSTALL = :
|
|
|
|
PRE_INSTALL = :
|
|
|
|
POST_INSTALL = :
|
|
|
|
NORMAL_UNINSTALL = :
|
|
|
|
PRE_UNINSTALL = :
|
|
|
|
POST_UNINSTALL = :
|
|
|
|
host_alias = @host_alias@
|
|
|
|
host_triplet = @host@
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
|
|
|
|
LIBTOOL = @LIBTOOL@
|
|
|
|
LN_S = @LN_S@
|
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
|
2001-07-26 17:57:57 -04:00
|
|
|
SUBDIRS = lib examples xmlwf
|
2001-07-25 11:12:00 -04:00
|
|
|
INSTALLSUBDIRS = lib xmlwf
|
2000-09-18 12:26:23 -04:00
|
|
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
2001-03-10 10:41:50 -05:00
|
|
|
CONFIG_HEADERS = config.h
|
2000-09-18 12:26:23 -04:00
|
|
|
|
|
|
|
DISTDIR = $(PACKAGE)-$(VERSION)
|
|
|
|
DISTRIBUTION = $(DISTDIR).tar.gz
|
|
|
|
|
2001-07-26 16:31:15 -04:00
|
|
|
default: lib xmlwf
|
|
|
|
|
2001-02-28 23:28:27 -05:00
|
|
|
buildlib: lib
|
|
|
|
|
2000-09-18 12:26:23 -04:00
|
|
|
all: $(SUBDIRS)
|
|
|
|
|
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) config.status
|
|
|
|
|
|
|
|
config.status: configure
|
|
|
|
@if test -f $@; then \
|
|
|
|
$(SHELL) config.status --recheck ; \
|
|
|
|
else \
|
|
|
|
$(SHELL) configure ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
configure: configure.in
|
|
|
|
$(AUTOCONF)
|
|
|
|
|
2001-03-10 10:41:50 -05:00
|
|
|
config.h: config.h.in config.status
|
2000-09-18 12:26:23 -04:00
|
|
|
CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADERS) \
|
|
|
|
$(SHELL) ./config.status
|
|
|
|
|
2001-03-10 10:41:50 -05:00
|
|
|
$(SUBDIRS):
|
2001-07-25 11:12:00 -04:00
|
|
|
cd $@ && $(MAKE)
|
2000-09-18 12:26:23 -04:00
|
|
|
|
|
|
|
clean:
|
2001-07-25 11:12:00 -04:00
|
|
|
for dir in $(SUBDIRS); do \
|
|
|
|
(cd $$dir && $(MAKE) clean); \
|
2000-09-18 12:26:23 -04:00
|
|
|
done
|
2000-09-21 17:20:18 -04:00
|
|
|
rm -f core *~
|
2000-09-18 12:26:23 -04:00
|
|
|
|
|
|
|
distclean:
|
2001-07-25 11:12:00 -04:00
|
|
|
for dir in $(SUBDIRS); do \
|
|
|
|
(cd $$dir && $(MAKE) distclean); \
|
2000-09-18 12:26:23 -04:00
|
|
|
done
|
2001-03-10 10:41:50 -05:00
|
|
|
rm -f config.h config.status config.log config.cache libtool
|
2001-07-26 17:57:57 -04:00
|
|
|
rm -f Makefile examples/Makefile xmlwf/Makefile
|
2001-03-10 10:41:50 -05:00
|
|
|
|
|
|
|
extraclean: distclean
|
|
|
|
rm -f aclocal.m4 config.h.in configure
|
|
|
|
rm -f conftools/config.guess conftools/config.sub
|
|
|
|
rm -f conftools/ltconfig conftools/ltmain.sh
|
2000-09-18 12:26:23 -04:00
|
|
|
|
|
|
|
maintainer-clean: distclean
|
|
|
|
rm -f $(DISTRIBUTION)
|
|
|
|
rm -rf $(DISTDIR)
|
|
|
|
|
2000-09-28 15:47:35 -04:00
|
|
|
distdir: MANIFEST
|
|
|
|
test -d $(DISTDIR) && rm -rf $(DISTDIR); \
|
|
|
|
mkdir $(DISTDIR); \
|
|
|
|
flist=`sed -e "s/[ ]:.*$$//" MANIFEST`; for file in $$flist; do \
|
2001-07-25 11:12:00 -04:00
|
|
|
cp -P $$file $(DISTDIR); \
|
2000-09-18 12:26:23 -04:00
|
|
|
done
|
|
|
|
|
2001-07-24 23:05:22 -04:00
|
|
|
check: $(SUBDIRS)
|
|
|
|
@echo
|
|
|
|
@echo This package does not yet have a regression test.
|
|
|
|
@echo
|
|
|
|
|
2000-09-18 12:26:23 -04:00
|
|
|
$(DISTRIBUTION): distdir
|
2001-07-24 16:03:28 -04:00
|
|
|
tar cf - $(DISTDIR) | gzip -9 >$(DISTRIBUTION)
|
2000-09-18 12:26:23 -04:00
|
|
|
|
|
|
|
dist: $(DISTRIBUTION)
|
|
|
|
|
|
|
|
install:
|
2001-07-25 11:12:00 -04:00
|
|
|
for dir in $(INSTALLSUBDIRS); do \
|
|
|
|
(cd $$dir && $(MAKE) install); \
|
2000-09-18 12:26:23 -04:00
|
|
|
done
|
|
|
|
|
|
|
|
uninstall:
|
2001-07-25 11:12:00 -04:00
|
|
|
for dir in $(INSTALLSUBDIRS); do \
|
|
|
|
(cd $$dir && $(MAKE) uninstall); \
|
2000-09-18 12:26:23 -04:00
|
|
|
done
|
2001-03-10 10:41:50 -05:00
|
|
|
|
|
|
|
.PHONY: buildlib all $(SUBDIRS) \
|
|
|
|
clean distclean extraclean maintainer-clean \
|
|
|
|
dist distdir \
|
|
|
|
install uninstall
|