build system: switch to automake (closes #79)

pull/81/head
William Pitcock 2015-09-03 03:12:59 -05:00
parent d67a04011f
commit 3142c25c56
4 changed files with 994 additions and 59 deletions

20
Makefile.am Normal file
View File

@ -0,0 +1,20 @@
libdir = @libdir@
datarootdir = @datarootdir@
datadir = @datadir@
includedir = @includedir@
system_includedir = @SYSTEM_INCLUDEDIR@
system_libdir = @SYSTEM_LIBDIR@
pkgconfigdir = @PKGCONFIGDIR@
CFLAGS = -Wall -Wextra -Wformat=2 -std=gnu99
bin_PROGRAMS = pkgconf
pkgconf_SOURCES = main.c cache.c pkg.c bsdstubs.c getopt_long.c fragment.c argvsplit.c fileio.c tuple.c dependency.c queue.c
pkgconf_CPPFLAGS = -DLIBDIR=\"${libdir}\" -DINCLUDEDIR=\"${includedir}\" -DPKG_DEFAULT_PATH=\"${pkgconfigdir}\" -DSYSTEM_INCLUDEDIR=\"${system_includedir}\" -DSYSTEM_LIBDIR=\"${system_libdir}\"
pkgconf_MANS = pkgconf.1
dist_doc_DATA = README.md AUTHORS
check: pkgconf
$(SHELL) tests/run.sh ./pkgconf

File diff suppressed because it is too large Load Diff

View File

@ -11,6 +11,7 @@ fi
AUTOCONF=${AUTOCONF:-autoconf}
ACLOCAL=${ACLOCAL:-aclocal}
AUTOHEADER=${AUTOHEADER:-autoheader}
AUTOMAKE=${AUTOMAKE:-automake}
dump_help_screen ()
{
@ -81,3 +82,4 @@ cd $TOP_DIR
run_or_die $ACLOCAL
run_or_die $AUTOHEADER
run_or_die $AUTOCONF
run_or_die $AUTOMAKE --add-missing

View File

@ -12,10 +12,11 @@ dnl implied. In no event shall the authors be liable for any damages arising
dnl from the use of this software.
AC_PREREQ([2.68])
AC_INIT([pkgconf], [0.9.12], [http://github.com/pkgconf/pkgconf/issues])
AC_INIT([pkgconf], [1], [http://github.com/pkgconf/pkgconf/issues])
AC_CONFIG_SRCDIR([pkg.c])
AC_CONFIG_HEADERS([config.h])
AC_CHECK_FUNCS([strlcpy strlcat strndup strtok_r])
AM_INIT_AUTOMAKE([foreign dist-xz])
AC_SYS_LARGEFILE