Improve exit statuses and error messages in pacman-key
[pacman-ng.git] / Makefile.am
blob6b24a4aade64bee40338802b0513cf3af6817081
1 SUBDIRS = lib/libalpm src/util src/pacman scripts etc test/pacman test/util contrib
2 if WANT_DOC
3 SUBDIRS += doc
4 endif
6 ACLOCAL_AMFLAGS = -I m4 --install
8 # Make sure we test and build manpages when doing distcheck
9 DISTCHECK_CONFIGURE_FLAGS = --enable-doc --disable-git-version
11 # Some files automatically included, so they aren't specified below:
12 #   AUTHORS, COPYING, NEWS, README
13 EXTRA_DIST = HACKING
15 # Sample makepkg prototype files
16 pkgdatadir = ${datadir}/${PACKAGE}
17 dist_pkgdata_DATA = \
18         proto/PKGBUILD.proto \
19         proto/PKGBUILD-split.proto \
20         proto/proto.install \
21         proto/ChangeLog.proto
23 # run the pactest test suite and vercmp tests
24 check-local: test/pacman test/util src/pacman src/util
25         LC_ALL=C $(PYTHON) $(top_srcdir)/test/pacman/pactest.py --debug=1 \
26                 --test $(top_srcdir)/test/pacman/tests/*.py \
27                 -p $(top_builddir)/src/pacman/pacman
28         $(SH) $(top_srcdir)/test/util/pacsorttest.sh \
29                 $(top_builddir)/src/util/pacsort
30         $(SH) $(top_srcdir)/test/util/vercmptest.sh \
31                 $(top_builddir)/src/util/vercmp
33 # create the pacman DB and cache directories upon install
34 install-data-local:
35         for dir in "$(DESTDIR)$(localstatedir)/lib/pacman" "$(DESTDIR)$(localstatedir)/cache/pacman/pkg"; do \
36           test -z "$$dir" || $(MKDIR_P) "$$dir"; \
37         done
39 update-po:
40         $(MAKE) -C lib/libalpm/po update-po
41         $(MAKE) -C scripts/po update-po
42         $(MAKE) -C src/pacman/po update-po
44 # vim:set ts=2 sw=2 noet: