1 ## Process this file with automake to create Makefile.in
3 # Copyright (C) 2001, 2002, 2003, 2004, 2008, 2009, 2010 Free Software
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # `make clean check' should build Config.pm first.
22 perllibdir = $(pkgvdatadir)/Automake
44 nodist_perllib_DATA = \
47 CLEANFILES = $(nodist_perllib_DATA)
49 ## We can't use configure to do the substitution here; we must do it
50 ## by hand. We use a funny notation here to avoid configure
51 ## substitutions in our text.
52 do_subst = in=`echo $@ | sed 's/\.[^.]*$$//'`; sed \
53 -e 's,[@]APIVERSION[@],$(APIVERSION),g' \
54 -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
55 -e 's,[@]PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g' \
56 -e 's,[@]PERL[@],$(PERL),g' \
57 -e 's,[@]PERL_THREADS[@],$(PERL_THREADS),g' \
58 -e 's,[@]SHELL[@],$(SHELL),g' \
59 -e 's,[@]VERSION[@],$(VERSION),g' \
60 -e "s,[@]configure_input[@],Generated from $$in.in; do not edit by hand.,g" \
61 -e 's,[@]datadir[@],$(datadir),g'
63 ## This file depends on Makefile so it is rebuilt if $(VERSION),
64 ## $(datadir) or other do_subst'ituted variables change.
65 ## Use chmod a-w to prevent people from editing the wrong file by accident.
66 Config.pm: Config.in Makefile
67 rm -f Config.tmp Config.pm
68 $(do_subst) $(srcdir)/Config.in >Config.tmp
71 mv -f Config.tmp Config.pm
73 EXTRA_DIST = Config.in