repo-add: add checkdepends information
[pacman-ng.git] / Makefile.am
blob7d6f3065214586f8119df5a8d57a49015df5e919
1 SUBDIRS = lib/libalpm src/util src/pacman scripts etc test/pacman test/util test/scripts
2 if WANT_DOC
3 SUBDIRS += doc
4 endif
6 DIST_SUBDIRS = $(SUBDIRS) contrib
8 ACLOCAL_AMFLAGS = -I m4 --install
10 # Make sure we test and build manpages when doing distcheck
11 DISTCHECK_CONFIGURE_FLAGS = --enable-doc --disable-git-version
13 # Some files automatically included, so they aren't specified below:
14 #   AUTHORS, COPYING, NEWS, README
15 EXTRA_DIST = HACKING
17 # Sample makepkg prototype files
18 pkgdatadir = ${datadir}/${PACKAGE}
19 dist_pkgdata_DATA = \
20         proto/PKGBUILD.proto \
21         proto/PKGBUILD-split.proto \
22         proto/proto.install \
23         proto/ChangeLog.proto
25 # run the pactest test suite and vercmp tests
26 check-local: test-pacman test-pacsort test-vercmp test-parseopts
28 test-pacman: test/pacman src/pacman
29         LC_ALL=C $(PYTHON) $(top_srcdir)/test/pacman/pactest.py --debug=1 \
30                 --test $(top_srcdir)/test/pacman/tests/*.py \
31                 -p $(top_builddir)/src/pacman/pacman
33 test-pacsort: test/util src/util
34         $(BASH_SHELL) $(top_srcdir)/test/util/pacsorttest.sh \
35                 $(top_builddir)/src/util/pacsort
37 test-vercmp: test/util src/util
38         $(BASH_SHELL) $(top_srcdir)/test/util/vercmptest.sh \
39                 $(top_builddir)/src/util/vercmp
41 test-parseopts: test/scripts scripts
42         $(BASH_SHELL) $(top_srcdir)/test/scripts/parseopts_test.sh \
43                 $(top_srcdir)/scripts/library/parseopts.sh
45 # create the pacman DB and cache directories upon install
46 install-data-local:
47         for dir in "$(DESTDIR)$(localstatedir)/lib/pacman" "$(DESTDIR)$(localstatedir)/cache/pacman/pkg"; do \
48           test -z "$$dir" || $(MKDIR_P) "$$dir"; \
49         done
51 update-po:
52         $(MAKE) -C lib/libalpm/po update-po
53         $(MAKE) -C scripts/po update-po
54         $(MAKE) -C src/pacman/po update-po
56 .PHONY: test-pacman test-pacsort test-vercmp test-parseopts update-po
58 # vim:set ts=2 sw=2 noet: