1
################################################################
2
# Process this file with top-level configure script to produce Makefile
4
# Copyright 2000 Clark Cooper
6
# This file is part of EXPAT.
8
# EXPAT is free software; you can redistribute it and/or modify it
9
# under the terms of the License (based on the MIT/X license) contained
10
# in the file COPYING that comes with this distribution.
12
# EXPAT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
13
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
15
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
16
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
17
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18
# SOFTWARE OR THE USE OR OTHER DEALINGS IN EXPAT.
21
# I started using automake, but
22
# 1) it seemed like overkill
23
# 2) I don't want all the GNU policies
24
# 3) I wanted more explicit control over what gets built
26
# So I'm doing my Makefile.in files manually. But a fair part is based
27
# on what I learned from perusing the Makefile.in's generated by automake,
28
# and the automake authors still get my kudos.
34
top_srcdir = @top_srcdir@
37
exec_prefix = @exec_prefix@
41
libexecdir = @libexecdir@
43
sysconfdir = @sysconfdir@
44
sharedstatedir = @sharedstatedir@
45
localstatedir = @localstatedir@
49
includedir = @includedir@
50
oldincludedir = /usr/include
58
INSTALL_PROGRAM = @INSTALL_PROGRAM@
59
INSTALL_DATA = @INSTALL_DATA@
60
INSTALL_SCRIPT = @INSTALL_SCRIPT@
68
host_alias = @host_alias@
80
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
81
CONFIG_HEADERS = config.h
83
DISTDIR = $(PACKAGE)-$(VERSION)
84
DISTRIBUTION = $(DISTDIR).tar.gz
88
.PHONY: all build-subdirs clean distclean extraclean maintainer-clean dist install \
91
Makefile: Makefile.in config.status
92
CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) config.status
94
config.status: configure
95
@if test -f $@; then \
96
$(SHELL) config.status --recheck ; \
98
$(SHELL) configure ; \
101
configure: configure.in
104
config.h: config.h.in config.status
105
CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADERS) \
106
$(SHELL) ./config.status
109
@list='$(SUBDIRS)'; \
110
for dir in $$list; do \
111
cd $$dir; $(MAKE); cd ..; \
115
@list='$(SUBDIRS)'; for dir in $$list; do \
116
cd $$dir; $(MAKE) clean; cd ..; \
121
@list='$(SUBDIRS)'; for dir in $$list; do \
122
cd $$dir; $(MAKE) distclean; cd ..; \
124
rm -f config.h config.status config.log libtool examples/Makefile xmlwf/Makefile Makefile
126
extraclean: distclean
127
rm -f configure aclocal.m4
129
maintainer-clean: distclean
130
rm -f $(DISTRIBUTION)
134
test -d $(DISTDIR) && rm -rf $(DISTDIR); \
136
flist=`sed -e "s/[ ]:.*$$//" MANIFEST`; for file in $$flist; do \
137
cp -P $$file $(DISTDIR); \
140
$(DISTRIBUTION): distdir
141
tar cfz $(DISTRIBUTION) $(DISTDIR)
143
dist: $(DISTRIBUTION)
146
@list='$(SUBDIRS)'; for dir in $$list; do \
147
cd $$dir; $(MAKE) install; cd ..; \
151
@list='$(SUBDIRS)'; for dir in $$list; do \
152
cd $$dir; $(MAKE) uninstall; cd ..; \
156
echo SOMEONE SHOULD MAKE THIS DO SOMETHING!!!