Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 VERSION=$(shell debian/vercheck)
4 RELEASE_PACKAGE=apt-xapian-index
5 PFX=$(CURDIR)/debian/apt-xapian-index
6
7 %:
8 dh $@ --buildsystem=pybuild
9
10 execute_after_dh_auto_build:
11 help2man --name='rebuild the Apt Xapian Index' --section=8 --no-info ./update-apt-xapian-index > update-apt-xapian-index.8
12 COLUMNS=200 help2man --name='query the Apt Xapian Index' --section=1 --no-info ./axi-cache > axi-cache.1
13
14 override_dh_auto_test:
15 ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
16 # run test suite
17 ./runtests -v
18 endif
19
20 execute_after_dh_auto_install:
21 mv $(PFX)/usr/bin/update-apt-xapian-index \
22 $(PFX)/usr/sbin/update-apt-xapian-index
23 # Install the plugins
24 install -m 755 -d $(PFX)/usr/share/apt-xapian-index/plugins
25 install -m 644 aliases/* $(PFX)/usr/share/apt-xapian-index/aliases/
26 install -m 644 plugins/*.py $(PFX)/usr/share/apt-xapian-index/plugins/
27 # Install bash completion
28 dh_bash-completion
29
30 execute_dh_auto_clean:
31 find . -name "*.pyc" -delete
32 rm -rf testdb
33 rm -f update-apt-xapian-index.8 axi-cache.1
34
35 vercheck:
36 debian/vercheck > /dev/null
37
38 debsrc: vercheck
39 git-buildpackage -S -us -uc
40 rm -f ../$(RELEASE_PACKAGE)_$(VERSION)_source.changes
41
42 #release: clean
43 # ( cd .. && FAKEROOTKEY= LD_PRELOAD= sbuild -c sid -A --nolog -s $(RELEASE_PACKAGE)_$(RELEASE_VERSION).dsc )
44 # ( cd .. && FAKEROOTKEY= LD_PRELOAD= lintian $(RELEASE_PACKAGE)_$(RELEASE_VERSION)_*.changes )
45 # git tag -s -m "Tagged version $(RELEASE_VERSION)" v$(RELEASE_VERSION)