1 ## Process this file with automake to create Makefile.in
3 ## Makefile for Automake lib.
5 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 EXTRA_DIST = gnupload gitlog-to-changelog update-copyright
22 ## -------------------------------------------------------------------- ##
23 ## Auxiliary scripts and files for use with "automake --add-missing". ##
24 ## -------------------------------------------------------------------- ##
26 dist_pkgvdata_DATA = \
31 ## These must all be executable when installed. However, if we use
32 ## _SCRIPTS, then the program transform will be applied, which is not
33 ## what we want. So we make them executable by hand.
53 @for prog in $(dist_script_DATA); do \
54 echo " chmod +x '$(DESTDIR)$(scriptdir)/$$prog'"; \
55 chmod +x "$(DESTDIR)$(scriptdir)/$$prog"; \
59 @for file in $(dist_script_DATA); do \
60 path="$(pkgvdatadir)/$$file"; \
61 test -x "$$path" || echo $$path; \
63 | sed 's/$$/: not executable/' \
64 | grep . && exit 1; exit 0
66 ## ---------------------------------------------------- ##
67 ## Private perl modules used by automake and aclocal. ##
68 ## ---------------------------------------------------- ##
70 perllibdir = $(pkgvdatadir)/Automake
72 Automake/ChannelDefs.pm \
73 Automake/Channels.pm \
74 Automake/Condition.pm \
75 Automake/Configure_ac.pm \
76 Automake/DisjConditions.pm \
77 Automake/FileUtils.pm \
82 Automake/Location.pm \
86 Automake/Variable.pm \
92 nodist_perllib_DATA = Automake/Config.pm
93 CLEANFILES = $(nodist_perllib_DATA)
95 ## We can't use configure to do the substitution here; we must do it
96 ## by hand. We use a funny notation here to avoid configure
97 ## substitutions in our text.
98 do_subst = in=`echo $@ | sed 's/\.[^.]*$$//'`; sed \
99 -e 's,[@]APIVERSION[@],$(APIVERSION),g' \
100 -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
101 -e 's,[@]PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g' \
102 -e 's,[@]PERL[@],$(PERL),g' \
103 -e 's,[@]PERL_THREADS[@],$(PERL_THREADS),g' \
104 -e 's,[@]SHELL[@],$(SHELL),g' \
105 -e 's,[@]VERSION[@],$(VERSION),g' \
106 -e "s,[@]configure_input[@],Generated from $$in.in; do not edit by hand.,g" \
107 -e 's,[@]datadir[@],$(datadir),g'
109 ## This file depends on Makefile so it is rebuilt if $(VERSION),
110 ## $(datadir) or other do_subst'ituted variables change.
111 ## Use chmod a-w to prevent people from editing the wrong file by accident.
112 Automake/Config.pm: Automake/Config.in Makefile
113 $(AM_V_at)rm -f $@ $@-t
114 $(AM_V_at)test -d Automake || mkdir Automake
115 $(AM_V_GEN)$(do_subst) $(srcdir)/Automake/Config.in >$@-t
116 $(AM_V_at)chmod a-w $@-t && mv -f $@-t $@
117 EXTRA_DIST += Automake/Config.in
119 ## --------------------- ##
120 ## Makefile fragments. ##
121 ## --------------------- ##