File: rules

package info (click to toggle)
fabulous 0.3.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 664 kB
  • ctags: 565
  • sloc: python: 4,196; makefile: 92; ansic: 58; sh: 19
file content (31 lines) | stat: -rwxr-xr-x 764 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@ --with python2,sphinxdoc

build-arch:
	mkdir -p debian/tmp
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -o xtermspeedup.so fabulous/_xterm256.c

override_dh_auto_build-indep:
	dh_auto_build -i
	PYTHONPATH=$(shell pwd) make -C docs/ html

override_dh_auto_install-arch:
	dh_auto_install -a
	rm \
		debian/tmp/usr/lib/python2*/dist-packages/fabulous/balls.png \
		debian/tmp/usr/lib/python2*/dist-packages/fabulous/demo.py
	mv xtermspeedup.so debian/tmp

override_dh_auto_install-indep:

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs/_build

override_dh_sphinxdoc-arch: