2012-04-08 12:32:17 -04:00
|
|
|
SUBDIRS = lib/libalpm src/util src/pacman scripts etc test/pacman test/util test/scripts
|
2007-12-22 00:47:18 -05:00
|
|
|
if WANT_DOC
|
|
|
|
SUBDIRS += doc
|
|
|
|
endif
|
2006-10-15 16:46:33 -04:00
|
|
|
|
2013-01-03 05:49:33 -05:00
|
|
|
DIST_SUBDIRS = $(SUBDIRS) contrib src/common
|
2011-12-12 16:36:56 -05:00
|
|
|
|
2010-09-23 10:10:47 -04:00
|
|
|
ACLOCAL_AMFLAGS = -I m4 --install
|
2012-05-08 02:51:02 -04:00
|
|
|
AM_MAKEFLAGS = --no-print-directory
|
2010-09-23 10:10:47 -04:00
|
|
|
|
2008-08-05 22:03:59 -04:00
|
|
|
# Make sure we test and build manpages when doing distcheck
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-doc --disable-git-version
|
|
|
|
|
2007-02-21 23:36:02 -05:00
|
|
|
# Some files automatically included, so they aren't specified below:
|
|
|
|
# AUTHORS, COPYING, NEWS, README
|
|
|
|
EXTRA_DIST = HACKING
|
2006-10-15 15:38:02 -04:00
|
|
|
|
2008-01-06 11:23:49 -05:00
|
|
|
# Sample makepkg prototype files
|
|
|
|
pkgdatadir = ${datadir}/${PACKAGE}
|
2011-06-25 16:45:01 -04:00
|
|
|
dist_pkgdata_DATA = \
|
|
|
|
proto/PKGBUILD.proto \
|
|
|
|
proto/PKGBUILD-split.proto \
|
|
|
|
proto/proto.install \
|
|
|
|
proto/ChangeLog.proto
|
2008-01-06 11:23:49 -05:00
|
|
|
|
2008-05-29 18:25:37 -04:00
|
|
|
# run the pactest test suite and vercmp tests
|
2012-04-24 21:44:29 -04:00
|
|
|
check-local: test-pacman test-pacsort test-vercmp test-parseopts
|
|
|
|
|
|
|
|
test-pacman: test/pacman src/pacman
|
2013-05-10 14:19:05 -04:00
|
|
|
$(PYTHON) $(top_srcdir)/test/pacman/pactest.py --debug=1 \
|
2010-05-30 00:41:59 -04:00
|
|
|
--test $(top_srcdir)/test/pacman/tests/*.py \
|
2013-01-20 01:49:52 -05:00
|
|
|
--scriptlet-shell $(SCRIPTLET_SHELL) \
|
2013-01-20 06:56:57 -05:00
|
|
|
--ldconfig $(LDCONFIG) \
|
2007-03-24 00:18:17 -04:00
|
|
|
-p $(top_builddir)/src/pacman/pacman
|
2012-04-24 21:44:29 -04:00
|
|
|
|
|
|
|
test-pacsort: test/util src/util
|
|
|
|
$(BASH_SHELL) $(top_srcdir)/test/util/pacsorttest.sh \
|
2011-08-08 16:24:04 -04:00
|
|
|
$(top_builddir)/src/util/pacsort
|
2012-04-24 21:44:29 -04:00
|
|
|
|
|
|
|
test-vercmp: test/util src/util
|
|
|
|
$(BASH_SHELL) $(top_srcdir)/test/util/vercmptest.sh \
|
2008-05-29 18:25:37 -04:00
|
|
|
$(top_builddir)/src/util/vercmp
|
2012-04-24 21:44:29 -04:00
|
|
|
|
|
|
|
test-parseopts: test/scripts scripts
|
2012-04-08 12:32:17 -04:00
|
|
|
$(BASH_SHELL) $(top_srcdir)/test/scripts/parseopts_test.sh \
|
|
|
|
$(top_srcdir)/scripts/library/parseopts.sh
|
2012-04-25 22:27:19 -04:00
|
|
|
$(BASH_SHELL) $(top_srcdir)/test/scripts/human_to_size_test.sh \
|
|
|
|
$(top_srcdir)/scripts/library/human_to_size.sh
|
2007-02-22 16:34:51 -05:00
|
|
|
|
2007-07-10 14:58:45 -04:00
|
|
|
# create the pacman DB and cache directories upon install
|
|
|
|
install-data-local:
|
|
|
|
for dir in "$(DESTDIR)$(localstatedir)/lib/pacman" "$(DESTDIR)$(localstatedir)/cache/pacman/pkg"; do \
|
|
|
|
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
|
|
|
done
|
|
|
|
|
2011-10-05 23:36:34 -04:00
|
|
|
update-po:
|
|
|
|
$(MAKE) -C lib/libalpm/po update-po
|
|
|
|
$(MAKE) -C scripts/po update-po
|
|
|
|
$(MAKE) -C src/pacman/po update-po
|
|
|
|
|
2012-04-24 21:44:29 -04:00
|
|
|
.PHONY: test-pacman test-pacsort test-vercmp test-parseopts update-po
|
|
|
|
|
2007-06-04 17:49:09 -04:00
|
|
|
# vim:set ts=2 sw=2 noet:
|