]>
Commit | Line | Data |
---|---|---|
8679cd68 | 1 | SUBDIRS = lib/libalpm src/util src/pacman scripts etc test/pacman test/util test/scripts |
26c05b1c DM |
2 | if WANT_DOC |
3 | SUBDIRS += doc | |
4 | endif | |
e037328e | 5 | |
27d9c25e | 6 | DIST_SUBDIRS = $(SUBDIRS) contrib src/common |
cd75ae46 | 7 | |
f489e969 | 8 | ACLOCAL_AMFLAGS = -I m4 --install |
d2ce93bc | 9 | AM_MAKEFLAGS = --no-print-directory |
f489e969 | 10 | |
d7e502a4 DM |
11 | # Make sure we test and build manpages when doing distcheck |
12 | DISTCHECK_CONFIGURE_FLAGS = --enable-doc --disable-git-version | |
13 | ||
3595201f DM |
14 | # Some files automatically included, so they aren't specified below: |
15 | # AUTHORS, COPYING, NEWS, README | |
3595201f | 16 | EXTRA_DIST = HACKING |
94810222 | 17 | |
d53388fb DM |
18 | # Sample makepkg prototype files |
19 | pkgdatadir = ${datadir}/${PACKAGE} | |
6633b8e5 DR |
20 | dist_pkgdata_DATA = \ |
21 | proto/PKGBUILD.proto \ | |
22 | proto/PKGBUILD-split.proto \ | |
23 | proto/proto.install \ | |
24 | proto/ChangeLog.proto | |
d53388fb | 25 | |
2cd0a87b | 26 | # run the pactest test suite and vercmp tests |
1583a207 DM |
27 | check-local: test-pacman test-pacsort test-vercmp test-parseopts |
28 | ||
29 | test-pacman: test/pacman src/pacman | |
296e630e | 30 | $(PYTHON) $(top_srcdir)/test/pacman/pactest.py --debug=1 \ |
844d82fa | 31 | --test $(top_srcdir)/test/pacman/tests/*.py \ |
801f7d10 | 32 | --scriptlet-shell $(SCRIPTLET_SHELL) \ |
89ecf8ca | 33 | --ldconfig $(LDCONFIG) \ |
f8d0601b | 34 | -p $(top_builddir)/src/pacman/pacman |
1583a207 DM |
35 | |
36 | test-pacsort: test/util src/util | |
37 | $(BASH_SHELL) $(top_srcdir)/test/util/pacsorttest.sh \ | |
d9f9b87d | 38 | $(top_builddir)/src/util/pacsort |
1583a207 DM |
39 | |
40 | test-vercmp: test/util src/util | |
41 | $(BASH_SHELL) $(top_srcdir)/test/util/vercmptest.sh \ | |
2cd0a87b | 42 | $(top_builddir)/src/util/vercmp |
1583a207 DM |
43 | |
44 | test-parseopts: test/scripts scripts | |
8679cd68 DR |
45 | $(BASH_SHELL) $(top_srcdir)/test/scripts/parseopts_test.sh \ |
46 | $(top_srcdir)/scripts/library/parseopts.sh | |
b58489d2 DR |
47 | $(BASH_SHELL) $(top_srcdir)/test/scripts/human_to_size_test.sh \ |
48 | $(top_srcdir)/scripts/library/human_to_size.sh | |
332c1271 | 49 | |
64e45a36 DM |
50 | # create the pacman DB and cache directories upon install |
51 | install-data-local: | |
52 | for dir in "$(DESTDIR)$(localstatedir)/lib/pacman" "$(DESTDIR)$(localstatedir)/cache/pacman/pkg"; do \ | |
53 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | |
54 | done | |
55 | ||
2df519f8 DM |
56 | update-po: |
57 | $(MAKE) -C lib/libalpm/po update-po | |
58 | $(MAKE) -C scripts/po update-po | |
59 | $(MAKE) -C src/pacman/po update-po | |
60 | ||
1583a207 DM |
61 | .PHONY: test-pacman test-pacsort test-vercmp test-parseopts update-po |
62 | ||
e0afe6e9 | 63 | # vim:set ts=2 sw=2 noet: |