Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
4
5 CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
6 CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
7 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
8
9 %:
10 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
11
12 override_dh_auto_build:
13 $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -o xtermspeedup.so fabulous/_xterm256.c
14 dh_auto_build
15
16
17 override_dh_auto_build-indep:
18 dh_auto_build -i
19 PYTHONPATH=$(shell pwd) make -C docs/ html
20
21 override_dh_auto_install-arch:
22 dh_auto_install -a
23 rm \
24 debian/python3-fabulous/usr/lib/python3*/dist-packages/fabulous/balls.png \
25 debian/python3-fabulous/usr/lib/python3*/dist-packages/fabulous/demo.py
26
27 override_dh_auto_install:
28 dh_auto_install
29 mkdir -p debian/python3-fabulous/usr/share/doc/python3-fabulous/examples
30 mv debian/python3-fabulous/usr/bin/fabulous-* \
31 debian/python3-fabulous/usr/share/doc/python3-fabulous/examples
32
33 override_dh_auto_install-indep:
34
35 override_dh_auto_clean:
36 dh_auto_clean
37 rm -rf docs/_build
38
39 override_dh_sphinxdoc-arch: