Merge branch 'msvc' into maint
[platform/upstream/automake.git] / m4 / Makefile.am
1 ## Process this file with automake to create Makefile.in
2
3 ## Makefile for Automake m4.
4
5 # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2006,
6 # 2008, 2009, 2011, 2012 Free Software Foundation, Inc.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
21 automake_acdir = $(datadir)/aclocal-$(APIVERSION)
22 system_acdir = $(datadir)/aclocal
23
24 dist_automake_ac_DATA = \
25 $(top_srcdir)/m4/amversion.m4 \
26 ar-lib.m4 \
27 as.m4 \
28 auxdir.m4 \
29 ccstdc.m4 \
30 cond.m4 \
31 cond-if.m4 \
32 depend.m4 \
33 depout.m4 \
34 dmalloc.m4 \
35 gcj.m4 \
36 header.m4 \
37 init.m4 \
38 install-sh.m4 \
39 lead-dot.m4 \
40 lex.m4 \
41 lispdir.m4 \
42 maintainer.m4 \
43 make.m4 \
44 minuso.m4 \
45 missing.m4 \
46 mkdirp.m4 \
47 multi.m4 \
48 obsol-gt.m4 \
49 obsol-lt.m4 \
50 obsolete.m4 \
51 options.m4 \
52 protos.m4 \
53 python.m4 \
54 regex.m4 \
55 runlog.m4 \
56 sanity.m4 \
57 silent.m4 \
58 strip.m4 \
59 substnot.m4 \
60 tar.m4 \
61 upc.m4 \
62 vala.m4
63
64 # So that $(system_acdir) will be created by "make install".
65 dist_system_ac_DATA =
66
67 EXTRA_DIST = acdir/dirlist amversion.in
68
69 # We build amversion.m4 here, instead of from config.status,
70 # because config.status is rerun each time one of configure's
71 # dependencies change and amversion.m4 happens to be a configure
72 # dependency.  configure and amversion.m4 would be rebuilt in
73 # loop otherwise.
74 # Use `$(top_srcdir)/m4' for the benefit of non-GNU makes: this is
75 # how amversion.m4 appears in our dependencies.
76 $(top_srcdir)/m4/amversion.m4: $(top_srcdir)/configure.ac $(srcdir)/amversion.in
77         $(AM_V_at)sed \
78             -e 's,[@]VERSION[@],$(VERSION),g' \
79             -e 's,[@]APIVERSION[@],$(APIVERSION),g' \
80             -e "s,[@]configure_input[@],Generated from amversion.in; do not edit by hand.,g" \
81             $(srcdir)/amversion.in > $@-t
82         @$(AM_V_at)chmod a-w $@-t && mv -f $@-t $@