makepkg: add functions for backup and restore of package fields
[pacman-ng.git] / Makefile.am
blob2f5e7a7bcf37bd445d718cc3d2cd8e48508258e5
1 SUBDIRS = lib/libalpm src/util src/pacman scripts etc po pactest contrib
2 if WANT_DOC
3 SUBDIRS += doc
4 endif
6 # Make sure we test and build manpages when doing distcheck
7 DISTCHECK_CONFIGURE_FLAGS = --enable-doc --disable-git-version
9 # Some files automatically included, so they aren't specified below:
10 #   AUTHORS, COPYING, NEWS, README
11 EXTRA_DIST = HACKING
13 # Sample makepkg prototype files
14 pkgdatadir = ${datadir}/${PACKAGE}
15 dist_pkgdata_DATA = PKGBUILD.proto PKGBUILD-split.proto proto.install ChangeLog.proto
17 # run the pactest test suite and vercmp tests
18 check-local: pactest src/pacman src/util
19         $(PYTHON) $(top_srcdir)/pactest/pactest.py --debug=1 \
20                 --test $(top_srcdir)/pactest/tests/*.py \
21                 -p $(top_builddir)/src/pacman/pacman
22         rm -rf $(top_builddir)/root
23         $(SH) $(top_srcdir)/pactest/vercmptest.sh \
24                 $(top_builddir)/src/util/vercmp
26 # create the pacman DB and cache directories upon install
27 install-data-local:
28         for dir in "$(DESTDIR)$(localstatedir)/lib/pacman" "$(DESTDIR)$(localstatedir)/cache/pacman/pkg"; do \
29           test -z "$$dir" || $(MKDIR_P) "$$dir"; \
30         done
32 # vim:set ts=2 sw=2 noet: