2012-04-08 09:32:17 -07:00
|
|
|
SUBDIRS = lib/libalpm src/util src/pacman scripts etc test/pacman test/util test/scripts
|
2007-12-21 21:47:18 -08:00
|
|
|
if WANT_DOC
|
|
|
|
SUBDIRS += doc
|
|
|
|
endif
|
2006-10-15 13:46:33 -07:00
|
|
|
|
2016-10-09 05:52:27 -07:00
|
|
|
DIST_SUBDIRS = $(SUBDIRS) src/common
|
2011-12-12 13:36:56 -08:00
|
|
|
|
2010-09-23 07:10:47 -07:00
|
|
|
ACLOCAL_AMFLAGS = -I m4 --install
|
2012-05-07 23:51:02 -07:00
|
|
|
AM_MAKEFLAGS = --no-print-directory
|
2010-09-23 07:10:47 -07:00
|
|
|
|
2008-08-05 19:03:59 -07:00
|
|
|
# Make sure we test and build manpages when doing distcheck
|
2018-12-02 17:44:24 -08:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-doc --disable-git-version \
|
|
|
|
bashcompdir='$${prefix}/share/bash-completion/completions'
|
2008-08-05 19:03:59 -07:00
|
|
|
|
2007-02-21 20:36:02 -08:00
|
|
|
# Some files automatically included, so they aren't specified below:
|
|
|
|
# AUTHORS, COPYING, NEWS, README
|
2019-08-15 16:55:45 -07:00
|
|
|
EXTRA_DIST = \
|
|
|
|
HACKING test/tap.sh \
|
|
|
|
meson.build meson_options.txt \
|
|
|
|
build-aux/edit-script.sh.in \
|
|
|
|
build-aux/meson-install-script.sh \
|
|
|
|
build-aux/meson-make-symlink.sh \
|
|
|
|
build-aux/script-wrapper.sh.in
|
|
|
|
|
2006-10-15 12:38:02 -07:00
|
|
|
|
2008-01-06 08:23:49 -08:00
|
|
|
# Sample makepkg prototype files
|
|
|
|
pkgdatadir = ${datadir}/${PACKAGE}
|
2011-06-25 13:45:01 -07:00
|
|
|
dist_pkgdata_DATA = \
|
|
|
|
proto/PKGBUILD.proto \
|
|
|
|
proto/PKGBUILD-split.proto \
|
2014-01-28 05:49:47 -08:00
|
|
|
proto/PKGBUILD-vcs.proto \
|
2014-02-01 18:28:09 -08:00
|
|
|
proto/proto.install
|
2008-01-06 08:23:49 -08:00
|
|
|
|
2015-02-08 22:58:02 -08:00
|
|
|
$(top_srcdir)/test/pacman/tests/TESTS: $(wildcard test/pacman/tests/*.py)
|
|
|
|
@printf "TESTS += %s\n" $^ | LC_ALL=C sort -u > "$@"
|
2013-09-19 19:00:11 -07:00
|
|
|
|
2013-07-18 00:43:51 -07:00
|
|
|
TESTS = test/scripts/parseopts_test.sh \
|
|
|
|
test/scripts/human_to_size_test.sh \
|
2014-12-21 06:46:37 -08:00
|
|
|
test/scripts/makepkg-template_test.sh \
|
2014-10-06 01:09:10 -07:00
|
|
|
test/scripts/pacman-db-upgrade-v9.py \
|
2013-07-18 00:43:51 -07:00
|
|
|
test/util/vercmptest.sh
|
|
|
|
include $(top_srcdir)/test/pacman/tests/TESTS
|
|
|
|
|
2014-01-09 06:44:18 -08:00
|
|
|
TEST_SUITE_LOG = test/test-suite.log
|
2013-07-18 00:43:51 -07:00
|
|
|
TEST_EXTENSIONS = .py
|
|
|
|
AM_TESTS_ENVIRONMENT = \
|
2013-09-18 11:27:00 -07:00
|
|
|
PMTEST_UTIL_DIR=$(top_builddir)/src/util/; export PMTEST_UTIL_DIR; \
|
2014-12-21 06:46:37 -08:00
|
|
|
PMTEST_SCRIPT_DIR=$(top_builddir)/scripts/; export PMTEST_SCRIPT_DIR; \
|
2016-10-10 01:47:38 -07:00
|
|
|
PMTEST_SCRIPTLIB_DIR=$(top_srcdir)/scripts/library/; export PMTEST_SCRIPTLIB_DIR; \
|
|
|
|
PMTEST_LIBMAKEPKG_DIR=$(top_builddir)/scripts/libmakepkg/; export PMTEST_LIBMAKEPKG_DIR;
|
2013-11-05 05:50:44 -08:00
|
|
|
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
|
2013-07-18 00:43:51 -07:00
|
|
|
$(top_srcdir)/build-aux/tap-driver.sh
|
|
|
|
PY_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
|
|
|
|
$(top_srcdir)/build-aux/tap-driver.sh
|
2013-12-20 08:59:46 -08:00
|
|
|
PY_LOG_COMPILER = $(PYTHON) $(top_srcdir)/test/pacman/pactest.py
|
2013-07-18 00:43:51 -07:00
|
|
|
AM_PY_LOG_FLAGS = \
|
2013-01-19 22:49:52 -08:00
|
|
|
--scriptlet-shell $(SCRIPTLET_SHELL) \
|
2013-01-20 03:56:57 -08:00
|
|
|
--ldconfig $(LDCONFIG) \
|
2014-10-06 00:01:40 -07:00
|
|
|
--bindir $(top_builddir)/src/pacman \
|
|
|
|
--bindir $(top_builddir)/scripts
|
2018-12-22 22:24:41 -08:00
|
|
|
if !HAVE_LIBGPGME
|
|
|
|
AM_PY_LOG_FLAGS += --without-gpg
|
|
|
|
endif
|
|
|
|
if !HAVE_LIBCURL
|
|
|
|
AM_PY_LOG_FLAGS += --without-curl
|
|
|
|
endif
|
2007-02-22 13:34:51 -08:00
|
|
|
|
2016-01-26 03:02:07 -08:00
|
|
|
# create the pacman DB, cache, makepkg-template and system hook directories upon install
|
2007-07-10 11:58:45 -07:00
|
|
|
install-data-local:
|
2016-01-26 03:02:07 -08:00
|
|
|
for dir in "$(DESTDIR)$(localstatedir)/lib/pacman" "$(DESTDIR)$(localstatedir)/cache/pacman/pkg" \
|
|
|
|
"$(DESTDIR)$(datarootdir)/makepkg-template" "$(DESTDIR)$(datarootdir)/libalpm/hooks"; do \
|
2007-07-10 11:58:45 -07:00
|
|
|
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
|
|
|
done
|
|
|
|
|
2011-10-05 20:36:34 -07:00
|
|
|
update-po:
|
|
|
|
$(MAKE) -C lib/libalpm/po update-po
|
|
|
|
$(MAKE) -C scripts/po update-po
|
|
|
|
$(MAKE) -C src/pacman/po update-po
|
|
|
|
|
2015-01-20 22:28:24 -08:00
|
|
|
update-copyright:
|
|
|
|
for file in $(shell sh -c 'git grep -l "Copyright .* Pacman Development" | grep -v "\.po"'); do \
|
|
|
|
sed -i -e "/Copyright (/s/-$(OLD)/-$(NEW)/" -e "/Copyright (/s/ $(OLD)/ $(OLD)-$(NEW)/" "$$file"; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.PHONY: update-po update-copyright
|