mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
build: Use Automake in lib/.
* autopull.sh: Copy also m4/init-package-version.m4. * autogen.sh: Mention the requirement for Automake. * Makefile.devel (lib/aclocal.m4, lib/config.h.in, lib/Makefile.in): New rules. (lib/configure): Use lib/aclocal.m4 instead of the top-level aclocal.m4. (src/config.h.in): Fix rule. (totally-clean): Remove the new generated files. * lib/configure.ac: Require Autoconf >= 2.70. Change AC_INIT invocation. Invoke AC_CONFIG_MACRO_DIRS, gl_INIT_PACKAGE_VERSION, AM_INIT_AUTOMAKE, AC_CONFIG_HEADERS. Don't invoke AC_MAKE_SET, AC_PROG_CPP, AC_PROG_CXXCPP, AC_PROG_INSTALL. * lib/Makefile.am: New file. * lib/Makefile.in: Remove file. * Makefile.in (IMPORTED_FILES): Remove lib/filename.h.
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
SHELL = /bin/sh
|
||||
MAKE = make
|
||||
|
||||
all : configures src/config.h.in
|
||||
all : lib/aclocal.m4 configures src/config.h.in lib/config.h.in lib/Makefile.in
|
||||
|
||||
lib/aclocal.m4 : force
|
||||
cd lib && aclocal -I ../m4
|
||||
|
||||
CONFIGURES = configure lib/configure src/configure tests/configure doc/configure
|
||||
|
||||
@@ -13,8 +16,8 @@ configures : $(CONFIGURES)
|
||||
configure : configure.ac aclocal.m4
|
||||
autoconf -I . && rm -rf autom4te.cache
|
||||
|
||||
lib/configure : lib/configure.ac aclocal.m4
|
||||
cd lib && autoconf -I .. && rm -rf autom4te.cache
|
||||
lib/configure : lib/configure.ac lib/aclocal.m4
|
||||
cd lib && autoconf && rm -rf autom4te.cache
|
||||
|
||||
src/configure : src/configure.ac aclocal.m4
|
||||
cd src && autoconf -I .. && rm -rf autom4te.cache
|
||||
@@ -29,11 +32,21 @@ check-configures : $(CONFIGURES)
|
||||
set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
|
||||
|
||||
src/config.h.in : src/configure.ac aclocal.m4
|
||||
cd src && autoheader -I .. && rm -rf autom4te.cache
|
||||
cd src && autoheader -I .. && touch config.h.in && rm -rf autom4te.cache
|
||||
|
||||
lib/config.h.in : lib/configure.ac aclocal.m4
|
||||
cd lib && autoheader && touch config.h.in
|
||||
|
||||
lib/Makefile.in : lib/Makefile.am lib/config.h.in lib/configure.ac aclocal.m4
|
||||
# Make sure we get new versions of files brought in by automake.
|
||||
cd build-aux && rm -f depcomp missing
|
||||
cd lib && automake --add-missing --copy && rm -rf autom4te.cache
|
||||
|
||||
totally-clean : force
|
||||
rm -f lib/aclocal.m4
|
||||
rm -f $(CONFIGURES)
|
||||
rm -f src/config.h.in
|
||||
rm -f lib/config.h.in lib/Makefile.in
|
||||
|
||||
force :
|
||||
|
||||
|
||||
Reference in New Issue
Block a user