1# Id: Makefile.in,v 1.1 2003/06/04 00:25:03 marka Exp
2# Copyright (c) 2000 Japan Network Information Center.  All rights reserved.
3#
4# By using this file, you agree to the terms and conditions set forth bellow.
5#
6# 			LICENSE TERMS AND CONDITIONS
7#
8# The following License Terms and Conditions apply, unless a different
9# license is obtained from Japan Network Information Center ("JPNIC"),
10# a Japanese association, Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda,
11# Chiyoda-ku, Tokyo 101-0047, Japan.
12#
13# 1. Use, Modification and Redistribution (including distribution of any
14#    modified or derived work) in source and/or binary forms is permitted
15#    under this License Terms and Conditions.
16#
17# 2. Redistribution of source code must retain the copyright notices as they
18#    appear in each source code file, this License Terms and Conditions.
19#
20# 3. Redistribution in binary form must reproduce the Copyright Notice,
21#    this License Terms and Conditions, in the documentation and/or other
22#    materials provided with the distribution.  For the purposes of binary
23#    distribution the "Copyright Notice" refers to the following language:
24#    "Copyright (c) 2000-2002 Japan Network Information Center.  All rights reserved."
25#
26# 4. The name of JPNIC may not be used to endorse or promote products
27#    derived from this Software without specific prior written approval of
28#    JPNIC.
29#
30# 5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC
31#    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32#    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
33#    PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL JPNIC BE LIABLE
34#    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
35#    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
36#    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
37#    BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
38#    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
39#    OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
40#    ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
41
42srcdir = @srcdir@
43VPATH = @srcdir@
44
45prefix = @prefix@
46exec_prefix = @exec_prefix@
47
48PERL = perl
49MKTARPKG = ../util/mktarpkg
50SHELL = @SHELL@
51
52SUBDIRS = include lib man tools map
53
54all: force all-subdirs
55test check: force test-subdirs
56install: force install-subdirs
57clean: force clean-subdirs
58distclean: force distclean-localdir distclean-subdirs
59
60distclean-localdir:
61	rm -f config.status config.cache config.log libtool Makefile
62
63all-subdirs install-subdirs clean-subdirs distclean-subdirs test-subdirs:
64	@target=`echo $@ | sed 's/-subdirs$$//'`; \
65	for d in $(SUBDIRS); do \
66	    (cd $$d; $(MAKE) DESTDIR=$(DESTDIR) $$target); \
67	done
68
69install-config:
70	(cd lib; $(MAKE) install-config);
71
72dist: force
73	@v=`sed -ne '/^# *define *IDNKIT_VERSION/s/^.*"\([^"]*\)".*$$/\1/p' \
74	    $(srcdir)/include/idn/version.h`; \
75	echo generate idnkit-$$v-src.tar.gz; \
76	cd $(srcdir); \
77	$(PERL) $(MKTARPKG) --gzip=9 idnkit-$$v-src
78
79force:
80