File: rules

package info (click to toggle)
pyxplot 0.9.2-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,988 kB
  • sloc: ansic: 50,369; xml: 1,339; python: 572; sh: 321; makefile: 93
file content (58 lines) | stat: -rwxr-xr-x 1,761 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/make -f

# Enable additional hardening options for the binaries
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

build-doc: build-stamp
	cp debian/icons/tick.png debian/icons/cross.png doc/
	+$(MAKE) -C doc
	rm -rf doc-plastex
	cp -r doc doc-plastex
	# Work around some plastex unhappiness; this is quite fragile
	cp debian/pyxplot-plastex.tex doc-plastex/
	sed -i -r 's/(\\begin\{enumerate\})\[\(i\)\]/\1/' doc-plastex/*.tex
	cd doc-plastex; plastex -d html --disable-image-cache --title="PyXPlot Users' Guide" pyxplot-plastex.tex
	rm -rf doc-plastex/html/.cache # --disable-image-cache does not seem to work
	# plastex leaves __init__.py files around
	find doc-plastex/html '(' -name __init__.py -or -name '__init__.py[co]' ')' -delete
	# clean up auto-generated tex output
	rm -rf doc/examples/tex
	rm doc/examples/eps/timestamp

override_dh_clean:
	dh_clean
	$(MAKE) -C doc clean
	rm -rf doc-plastex doc/examples/tex

override_dh_auto_build-arch: build-stamp

build-stamp:
	sed -i 's,^GV_COMMAND=/bin/false,GV_COMMAND=/usr/bin/gv\nGV_OPT=--,' Makefile
	+$(MAKE) USRDIR=/usr
	touch build-stamp

override_dh_auto_build-indep: build-doc

override_dh_auto_install-arch:
	+$(MAKE) install USRDIR=/usr DESTDIR=$(CURDIR)/debian/tmp
	sh debian/icons/mkicons install $(CURDIR)/debian/pyxplot

override_dh_auto_install-indep:
	+$(MAKE) install-doc USRDIR=/usr DESTDIR=$(CURDIR)/debian/tmp

override_dh_compress:
	dh_compress --all -X.pdf


# These two targets are for the maintainer to refresh icons if needed
build-icons:
	sh debian/icons/mkicons convert

build-doc-icons:
	convert -background none doc/tick.svg debian/icons/tick.png
	convert -background none doc/cross.svg debian/icons/cross.png

.PHONY: build-doc build-icons build-doc-icons