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 # run the pactest test suite and vercmp tests
27 check-local: test-pacman test-pacsort test-vercmp test-parseopts
29 test-pacman: test/pacman src/pacman
30 LC_ALL=C $(PYTHON) $(top_srcdir)/test/pacman/pactest.py --debug=1 \
31 --test $(top_srcdir)/test/pacman/tests/*.py \
32 --scriptlet-shell $(SCRIPTLET_SHELL) \
33 --ldconfig $(LDCONFIG) \
34 -p $(top_builddir)/src/pacman/pacman
36 test-pacsort: test/util src/util
37 $(BASH_SHELL) $(top_srcdir)/test/util/pacsorttest.sh \
38 $(top_builddir)/src/util/pacsort
40 test-vercmp: test/util src/util
41 $(BASH_SHELL) $(top_srcdir)/test/util/vercmptest.sh \
42 $(top_builddir)/src/util/vercmp
44 test-parseopts: test/scripts scripts
45 $(BASH_SHELL) $(top_srcdir)/test/scripts/parseopts_test.sh \
46 $(top_srcdir)/scripts/library/parseopts.sh
47 $(BASH_SHELL) $(top_srcdir)/test/scripts/human_to_size_test.sh \
48 $(top_srcdir)/scripts/library/human_to_size.sh
50 # create the pacman DB and cache directories upon install
52 for dir in "$(DESTDIR)$(localstatedir)/lib/pacman" "$(DESTDIR)$(localstatedir)/cache/pacman/pkg"; do \
53 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
57 $(MAKE) -C lib/libalpm/po update-po
58 $(MAKE) -C scripts/po update-po
59 $(MAKE) -C src/pacman/po update-po
61 .PHONY: test-pacman test-pacsort test-vercmp test-parseopts update-po
63 # vim:set ts=2 sw=2 noet: