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