1 SUBDIRS = lib/libalpm src/util src/pacman scripts etc test/pacman test/util test/scripts
6 DIST_SUBDIRS = $(SUBDIRS) contrib src/common
8 ACLOCAL_AMFLAGS = -I m4 --install
9 AM_MAKEFLAGS = --no-print-directory
11 # Make sure we test and build manpages when doing distcheck
12 DISTCHECK_CONFIGURE_FLAGS = --enable-doc --disable-git-version
14 # Some files automatically included, so they aren't specified below:
15 # AUTHORS, COPYING, NEWS, README
18 # Sample makepkg prototype files
19 pkgdatadir = ${datadir}/${PACKAGE}
21 proto/PKGBUILD.proto \
22 proto/PKGBUILD-split.proto \
26 TESTS = test/scripts/parseopts_test.sh \
27 test/scripts/human_to_size_test.sh \
28 test/util/pacsorttest.sh \
29 test/util/vercmptest.sh
30 include $(top_srcdir)/test/pacman/tests/TESTS
33 AM_TESTS_ENVIRONMENT = \
34 PMTEST_UTIL_DIR=$(top_srcdir)/src/util/; export PMTEST_UTIL_DIR; \
35 PMTEST_SCRIPTLIB_DIR=$(top_srcdir)/scripts/library/; export PMTEST_SCRIPTLIB_DIR;
36 TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
37 $(top_srcdir)/build-aux/tap-driver.sh
38 PY_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
39 $(top_srcdir)/build-aux/tap-driver.sh
40 PY_LOG_COMPILER = test/pacman/pactest.py
42 --scriptlet-shell $(SCRIPTLET_SHELL) \
43 --ldconfig $(LDCONFIG) \
44 -p $(top_builddir)/src/pacman/pacman
46 # create the pacman DB and cache directories upon install
48 for dir in "$(DESTDIR)$(localstatedir)/lib/pacman" "$(DESTDIR)$(localstatedir)/cache/pacman/pkg"; do \
49 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
53 $(MAKE) -C lib/libalpm/po update-po
54 $(MAKE) -C scripts/po update-po
55 $(MAKE) -C src/pacman/po update-po
57 .PHONY: test-pacman test-pacsort test-vercmp test-parseopts update-po
59 # vim:set ts=2 sw=2 noet: