vigiboard / debian / rules @ 73119f8a
History | View | Annotate | Download (1.35 KB)
1 |
#!/usr/bin/make -f |
---|---|
2 |
# -*- makefile -*- |
3 |
|
4 |
# Uncomment this to turn on verbose mode. |
5 |
export DH_VERBOSE=1 |
6 |
export DH_OPTIONS=-v |
7 |
|
8 |
PKGNAME=$(shell printf "%s" `dpkg-parsechangelog | grep '^Source:' | cut -d: -f2-`) |
9 |
VERSION=$(shell printf "%s" `dpkg-parsechangelog | grep '^Version:' | cut -d: -f2-`) |
10 |
|
11 |
ifeq "$(NOPY)" "" |
12 |
helper=python2 |
13 |
else |
14 |
helper=python2_nopy |
15 |
endif |
16 |
|
17 |
%: |
18 |
dh $@ --with $(helper),sphinxdoc |
19 |
|
20 |
override_dh_auto_clean: |
21 |
dh_auto_clean -- buildclean |
22 |
find vigiboard/i18n/ -name '*.mo' -o -name '*.js' -delete |
23 |
ifneq "$(NOPY)" "" |
24 |
rm -f $(CURDIR)/debian/docs $(CURDIR)/debian/copyright |
25 |
endif |
26 |
|
27 |
override_dh_auto_install: |
28 |
$(MAKE) install_pkg \ |
29 |
DESTDIR=$(CURDIR)/debian/$(PKGNAME)/ \ |
30 |
PYTHON=/usr/bin/python |
31 |
/usr/bin/find vigiboard/i18n/ -name '*.mo' -o -name '*.js' -exec \ |
32 |
'mv' '{}' "debian/$(PKGNAME)/usr/share/pyshared/{}" ';' |
33 |
|
34 |
override_dh_auto_test: |
35 |
|
36 |
override_dh_installdocs: |
37 |
ifneq "$(NOPY)" "" |
38 |
PYTHONPATH=src/ /usr/bin/sphinx-build -b html -d doc/_build/doctrees \ |
39 |
-D version=$(VERSION) -D release=$(VERSION) \ |
40 |
doc/ debian/$(PKGNAME)-doc/usr/share/doc/$(PKGNAME)-doc/html/ |
41 |
endif |
42 |
|
43 |
override_dh_sphinxdoc: |
44 |
ifneq "$(NOPY)" "" |
45 |
dh_sphinxdoc -p $(PKGNAME)-doc |
46 |
endif |
47 |
|
48 |
.PHONY: override_dh_auto_clean \ |
49 |
override_dh_auto_build \ |
50 |
override_dh_auto_install \ |
51 |
override_dh_auto_test \ |
52 |
override_dh_installdocs \ |
53 |
override_dh_sphinxdoc |