1 | ## Process this file with automake to create Makefile.in
|
---|
2 |
|
---|
3 | ## Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
---|
4 |
|
---|
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 2, or (at your option)
|
---|
8 | ## any later version.
|
---|
9 |
|
---|
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.
|
---|
14 |
|
---|
15 | ## You should have received a copy of the GNU General Public License
|
---|
16 | ## along with this program; if not, write to the Free Software
|
---|
17 | ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
---|
18 | ## 02110-1301, USA.
|
---|
19 |
|
---|
20 | SUBDIRS = tests
|
---|
21 |
|
---|
22 | perllibdir = $(pkgvdatadir)/Automake
|
---|
23 | dist_perllib_DATA = \
|
---|
24 | ChannelDefs.pm \
|
---|
25 | Channels.pm \
|
---|
26 | Condition.pm \
|
---|
27 | Configure_ac.pm \
|
---|
28 | DisjConditions.pm \
|
---|
29 | FileUtils.pm \
|
---|
30 | General.pm \
|
---|
31 | Item.pm \
|
---|
32 | ItemDef.pm \
|
---|
33 | Location.pm \
|
---|
34 | Options.pm \
|
---|
35 | Rule.pm \
|
---|
36 | RuleDef.pm \
|
---|
37 | Struct.pm \
|
---|
38 | Variable.pm \
|
---|
39 | VarDef.pm \
|
---|
40 | Version.pm \
|
---|
41 | XFile.pm \
|
---|
42 | Wrap.pm
|
---|
43 |
|
---|
44 | nodist_perllib_DATA = \
|
---|
45 | Config.pm
|
---|
46 |
|
---|
47 | CLEANFILES = $(nodist_perllib_DATA)
|
---|
48 |
|
---|
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,[@]PERL[@],$(PERL),g' \
|
---|
56 | -e 's,[@]SHELL[@],$(SHELL),g' \
|
---|
57 | -e 's,[@]VERSION[@],$(VERSION),g' \
|
---|
58 | -e "s,[@]configure_input[@],Generated from $$in.in; do not edit by hand.,g" \
|
---|
59 | -e 's,[@]datadir[@],$(datadir),g'
|
---|
60 |
|
---|
61 | ## This file depend on Makefile so it is rebuilt if $(VERSION),
|
---|
62 | ## $(datadir) or other do_subst'ituted variables change.
|
---|
63 | ## Use chmod a-w to prevent people from editing the wrong file by accident.
|
---|
64 | Config.pm: Config.in Makefile
|
---|
65 | rm -f Config.tmp Config.pm
|
---|
66 | $(do_subst) $(srcdir)/Config.in >Config.tmp
|
---|
67 | chmod +x Config.tmp
|
---|
68 | chmod a-w Config.tmp
|
---|
69 | mv -f Config.tmp Config.pm
|
---|
70 |
|
---|
71 | EXTRA_DIST = Config.in
|
---|