vigigraph / debian / rules @ 35afe3dd
History | View | Annotate | Download (1.55 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 |
%: |
12 |
dh $@ --with python2,sphinxdoc |
13 |
|
14 |
override_dh_auto_clean: |
15 |
dh_auto_clean -- buildclean |
16 |
$(RM) -rf vigilo_vigigraph.egg-info |
17 |
find vigigraph/i18n/ -name '*.mo' -o -name '*.js' -delete |
18 |
|
19 |
override_dh_auto_build: |
20 |
/usr/bin/python setup.py compile_catalog |
21 |
$(MAKE) deployment/logrotate.conf deployment/settings.ini \ |
22 |
deployment/vigigraph.conf deployment/vigigraph.wsgi |
23 |
|
24 |
override_dh_auto_install: |
25 |
python setup.py install --root=debian/$(PKGNAME) \ |
26 |
--single-version-externally-managed \ |
27 |
--install-layout=deb |
28 |
mkdir -p debian/$(PKGNAME)/var/log/vigilo/vigigraph/ |
29 |
mkdir -p debian/$(PKGNAME)/var/cache/vigilo/sessions/ |
30 |
find vigigraph/i18n/ -name '*.mo' -o -name '*.js' -exec \ |
31 |
'mv' '{}' "debian/$(PKGNAME)/usr/share/pyshared/{}" ';' |
32 |
|
33 |
override_dh_auto_test: |
34 |
|
35 |
override_dh_installdocs: |
36 |
ifneq "$(shell dh_listpackages | grep -- -doc)" "" |
37 |
PYTHONPATH=src/ sphinx-build -b html -d doc/_build/doctrees \ |
38 |
-D version=$(VERSION) -D release=$(VERSION) \ |
39 |
doc/ debian/$(PKGNAME)-doc/usr/share/doc/$(PKGNAME)-doc/html/ |
40 |
endif |
41 |
|
42 |
override_dh_sphinxdoc: |
43 |
ifneq "$(shell dh_listpackages | grep -- -doc)" "" |
44 |
dh_sphinxdoc -p $(PKGNAME)-doc |
45 |
endif |
46 |
|
47 |
.PHONY: override_dh_auto_clean \ |
48 |
override_dh_auto_build \ |
49 |
override_dh_auto_install \ |
50 |
override_dh_auto_test \ |
51 |
override_dh_installdocs \ |
52 |
override_dh_sphinxdoc |