Support more C++ file extensions for MSVC in the compile script.
[platform/upstream/automake.git] / lib / Automake / Makefile.am
1 ## Process this file with automake to create Makefile.in
2
3 # Copyright (C) 2001, 2002, 2003, 2004, 2008, 2009, 2010 Free Software
4 # Foundation, Inc.
5
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)
9 # any later version.
10
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.
15
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/>.
18
19 # `make clean check' should build Config.pm first.
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,[@]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'
62
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
69         chmod +x Config.tmp
70         chmod a-w Config.tmp
71         mv -f Config.tmp Config.pm
72
73 EXTRA_DIST = Config.in