Prefer HTTPS to FTP and HTTP
[autoconf.git] / lib / local.mk
blobd1921f6f1fd6f34101344479feacbbca4295f7ac
1 # Make Autoconf-related libraries.
3 # Copyright (C) 2001-2005, 2009-2017 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 of the License, or
8 # (at your option) any later version.
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 <https://www.gnu.org/licenses/>.
18 ETAGS_ARGS += $(ETAGS_FOR_AUTOCONF)
19 TAGS_FILES = # Incrementally updated later.
21 # Additional checks.
22 check-local: check-forbidden-patterns
23 forbidden_patterns = -e '^_*EOF' -e ' cmp '
24 forbidden_patterns_files = # Incrementally updated later.
26 ## ---------------------------------------------------------------- ##
27 ## Auxiliary perl modules used by autom4te and other perl scripts. ##
28 ## ---------------------------------------------------------------- ##
30 perllibdir = $(pkgdatadir)/Autom4te
32 dist_perllib_DATA = \
33 lib/Autom4te/C4che.pm \
34 lib/Autom4te/ChannelDefs.pm \
35 lib/Autom4te/Channels.pm \
36 lib/Autom4te/Configure_ac.pm \
37 lib/Autom4te/FileUtils.pm \
38 lib/Autom4te/General.pm \
39 lib/Autom4te/Getopt.pm \
40 lib/Autom4te/Request.pm \
41 lib/Autom4te/XFile.pm
43 TAGS_FILES += $(dist_perllib_DATA)
44 # Note: ETAGS_ARGS should have already been extended to handle perl files.
46 ## ------------------------------------------ ##
47 ## Make Autom4te default configuration file. ##
48 ## ------------------------------------------ ##
50 nodist_pkgdata_DATA = lib/autom4te.cfg
51 EXTRA_DIST += lib/autom4te.in
53 # All the files below depend on Makefile so that they are rebuilt
54 # when the prefix, etc. changes. Unfortunately, suffix rules
55 # cannot have additional dependencies, so we have to use explicit rules.
56 CLEANFILES += lib/autom4te.cfg
57 lib/autom4te.cfg: $(srcdir)/lib/autom4te.in Makefile
58 rm -f $@ $@-t
59 $(MKDIR_P) $(@D)
60 $(edit) $(srcdir)/lib/autom4te.in >$@-t
61 chmod a-w $@-t
62 mv -f $@-t $@
64 ## ----------------------------- ##
65 ## Make Autoconf Emacs library. ##
66 ## ----------------------------- ##
68 dist_lisp_LISP = lib/emacs/autoconf-mode.el lib/emacs/autotest-mode.el
70 # TODO: This is required to work around a limitation in older
71 # Automake. Remove once we can assume Automake 1.13 or later.
72 CLEANFILES += autoconf-mode.elc autotest-mode.elc
74 ## ----------------------- ##
75 ## Make Autoconf library. ##
76 ## ----------------------- ##
78 autoconflibdir = $(pkgdatadir)/autoconf
80 dist_autoconflib_DATA = \
81 lib/autoconf/autoconf.m4 \
82 lib/autoconf/general.m4 \
83 lib/autoconf/status.m4 \
84 lib/autoconf/oldnames.m4 \
85 lib/autoconf/specific.m4 \
86 lib/autoconf/autoheader.m4 \
87 lib/autoconf/autoupdate.m4 \
88 lib/autoconf/autotest.m4 \
89 lib/autoconf/autoscan.m4 \
90 lib/autoconf/lang.m4 \
91 lib/autoconf/c.m4 \
92 lib/autoconf/erlang.m4 \
93 lib/autoconf/fortran.m4 \
94 lib/autoconf/functions.m4 \
95 lib/autoconf/go.m4 \
96 lib/autoconf/headers.m4 \
97 lib/autoconf/types.m4 \
98 lib/autoconf/libs.m4 \
99 lib/autoconf/programs.m4
101 nodist_autoconflib_DATA = lib/autoconf/autoconf.m4f
102 CLEANFILES += $(nodist_autoconflib_DATA)
104 TAGS_FILES += $(dist_autoconflib_DATA)
106 forbidden_patterns_files += $(dist_autoconflib_DATA)
108 lib/autoconf/autoconf.m4f: $(autoconf_m4f_dependencies)
110 ## ------------------------ ##
111 ## Make Autoscan library. ##
112 ## ------------------------ ##
114 autoscanlibdir = $(pkgdatadir)/autoscan
116 EXTRA_DIST += lib/autoscan/autoscan.pre
117 nodist_autoscanlib_DATA = lib/autoscan/autoscan.list
118 CLEANFILES += lib/autoscan/autoscan.list
120 lib/autoscan/autoscan.list: $(srcdir)/lib/autoscan/autoscan.pre
121 $(MKDIR_P) $(@D)
122 echo '# Automatically Generated: do not edit this file' >$@
123 sed '/^[#]/!q' $(srcdir)/lib/autoscan/autoscan.pre >>$@
125 sed -n '/^[^#]/p' $(srcdir)/lib/autoscan/autoscan.pre; \
126 $(MY_AUTOM4TE) --cache '' -M -l autoconf-without-aclocal-m4 \
127 -t'AN_OUTPUT:$$1: $$2 $$3' \
128 ) | LC_ALL=C sort >>$@
130 lib/autoscan/autoscan.list: $(autoconf_m4f_dependencies) Makefile
132 ## ----------------------------------- ##
133 ## Make Autoconf library for M4sugar. ##
134 ## ----------------------------------- ##
136 m4sugarlibdir = $(pkgdatadir)/m4sugar
138 dist_m4sugarlib_DATA = \
139 lib/m4sugar/m4sugar.m4 \
140 lib/m4sugar/foreach.m4 \
141 lib/m4sugar/m4sh.m4
143 nodist_m4sugarlib_DATA = \
144 lib/m4sugar/version.m4 \
145 lib/m4sugar/m4sugar.m4f \
146 lib/m4sugar/m4sh.m4f
148 CLEANFILES += $(nodist_m4sugarlib_DATA)
150 # The ':;' in the second line of the recipe works around a redirected
151 # compound command bash exit status bug.
152 lib/m4sugar/version.m4: Makefile
153 $(MKDIR_P) $(@D)
154 :;{ \
155 echo '# This file is part of -*- Autoconf -*-.' && \
156 echo '# Version of Autoconf.' && \
157 echo '# Copyright (C) 1999, 2000, 2001, 2002, 2006, 2007, 2009' && \
158 echo '# Free Software Foundation, Inc.' && \
159 echo &&\
160 echo 'm4_define([m4_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
161 echo 'm4_define([m4_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
162 echo 'm4_define([m4_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
163 echo 'm4_define([m4_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
164 echo 'm4_define([m4_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' && \
165 echo 'm4_define([m4_PACKAGE_URL], [$(PACKAGE_URL)])' && \
166 echo 'm4_define([m4_PACKAGE_YEAR], [$(RELEASE_YEAR)])'; \
167 } > $@-t
168 mv $@-t $@
170 TAGS_FILES += $(dist_m4sugarlib_DATA)
172 forbidden_patterns_files += $(dist_m4sugarlib_DATA)
174 lib/m4sugar/m4sugar.m4f: $(m4sugar_m4f_dependencies)
175 lib/m4sugar/m4sh.m4f: $(m4sh_m4f_dependencies)
177 ## ----------------------- ##
178 ## Make Autotest library. ##
179 ## ----------------------- ##
181 autotestlibdir = $(pkgdatadir)/autotest
183 dist_autotestlib_DATA = \
184 lib/autotest/autotest.m4 \
185 lib/autotest/general.m4 \
186 lib/autotest/specific.m4
188 nodist_autotestlib_DATA = lib/autotest/autotest.m4f
189 CLEANFILES += $(nodist_autotestlib_DATA)
191 TAGS_FILES += $(dist_autotestlib_DATA)
193 forbidden_patterns_files += $(dist_autotestlib_DATA)
195 lib/autotest/autotest.m4f: $(autotest_m4f_dependencies)