repo-remove: remove deltas file if it becomes empty
[pacman-ng.git] / Makefile.am
bloba024a2e6eea6f29e90e8981aedb0a64b116f2a2c
1 SUBDIRS = lib/libalpm src/util src/pacman scripts etc test/pacman test/util
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/util src/pacman src/util
27         LC_ALL=C $(PYTHON) $(top_srcdir)/test/pacman/pactest.py --debug=1 \
28                 --test $(top_srcdir)/test/pacman/tests/*.py \
29                 -p $(top_builddir)/src/pacman/pacman
30         $(SH) $(top_srcdir)/test/util/pacsorttest.sh \
31                 $(top_builddir)/src/util/pacsort
32         $(SH) $(top_srcdir)/test/util/vercmptest.sh \
33                 $(top_builddir)/src/util/vercmp
35 # create the pacman DB and cache directories upon install
36 install-data-local:
37         for dir in "$(DESTDIR)$(localstatedir)/lib/pacman" "$(DESTDIR)$(localstatedir)/cache/pacman/pkg"; do \
38           test -z "$$dir" || $(MKDIR_P) "$$dir"; \
39         done
41 update-po:
42         $(MAKE) -C lib/libalpm/po update-po
43         $(MAKE) -C scripts/po update-po
44         $(MAKE) -C src/pacman/po update-po
46 # vim:set ts=2 sw=2 noet: