vigiboard / debian / rules @ 4e75dfb9
History | View | Annotate | Download (1.35 KB)
1 | 172682b4 | Francois POIROTTE | #!/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 | be44f043 | Francois POIROTTE | ifeq "$(NOPY)" "" |
12 | helper=python2 |
||
13 | else |
||
14 | helper=python2_nopy |
||
15 | endif |
||
16 | |||
17 | 172682b4 | Francois POIROTTE | %: |
18 | be44f043 | Francois POIROTTE | dh $@ --with $(helper),sphinxdoc |
19 | 172682b4 | Francois POIROTTE | |
20 | override_dh_auto_clean: |
||
21 | dh_auto_clean -- buildclean |
||
22 | find vigiboard/i18n/ -name '*.mo' -o -name '*.js' -delete |
||
23 | be44f043 | Francois POIROTTE | ifneq "$(NOPY)" "" |
24 | rm -f $(CURDIR)/debian/docs $(CURDIR)/debian/copyright |
||
25 | endif |
||
26 | 172682b4 | Francois POIROTTE | |
27 | override_dh_auto_install: |
||
28 | be44f043 | Francois POIROTTE | $(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 | 5d0ab969 | Francois POIROTTE | 'mv' '{}' "debian/$(PKGNAME)/usr/share/pyshared/{}" ';' |
33 | 172682b4 | Francois POIROTTE | |
34 | override_dh_auto_test: |
||
35 | |||
36 | override_dh_installdocs: |
||
37 | be44f043 | Francois POIROTTE | ifneq "$(NOPY)" "" |
38 | 5d0ab969 | Francois POIROTTE | PYTHONPATH=src/ /usr/bin/sphinx-build -b html -d doc/_build/doctrees \ |
39 | be44f043 | Francois POIROTTE | -D version=$(VERSION) -D release=$(VERSION) \ |
40 | doc/ debian/$(PKGNAME)-doc/usr/share/doc/$(PKGNAME)-doc/html/ |
||
41 | 172682b4 | Francois POIROTTE | endif |
42 | |||
43 | override_dh_sphinxdoc: |
||
44 | be44f043 | Francois POIROTTE | ifneq "$(NOPY)" "" |
45 | 172682b4 | Francois POIROTTE | 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 |