File: rules

package info (click to toggle)
asymptote 2.38-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,908 kB
  • ctags: 13,089
  • sloc: cpp: 60,286; ansic: 4,754; python: 3,909; sh: 3,363; perl: 1,563; lisp: 1,363; makefile: 606; yacc: 554; lex: 444
file content (53 lines) | stat: -rwxr-xr-x 1,907 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
#!/usr/bin/make -f

PKG=asymptote

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --prefix=/usr --enable-gc=system	\
		--with-latex=/usr/share/texmf/tex/latex		\
		--with-context=/usr/share/texmf/tex/context/third


override_dh_auto_build:
	make asy man
	make all html
	# fix location of images in info document
	cat doc/png/asymptote.info | sed -e 's!image src="\([^"]*\)"!image src="/usr/share/doc/asymptote-doc/html/\1"!g' > doc/png/asymptote.info.fixed
	mv doc/png/asymptote.info.fixed doc/png/asymptote.info

override_dh_auto_install:
	make install-asy DESTDIR=$(CURDIR)/debian/tmp
	dh_installtex -pasymptote

override_dh_auto_test:
	: do nothing here, otherwise make tries to compile prc/test.cc

override_dh_compress:
	dh_compress -X.pdf

override_dh_clean:
	dh_clean
	rm --force doc/latexusage.pdf doc/latexusage.dvi doc/TeXShopAndAsymptote.dvi doc/CAD.dvi
	rm --force doc/*.aux doc/*.cp doc/*.cps doc/*.idx doc/*.ins doc/*.log doc/*.toc doc/asymptote.fn doc/asymptote.ky doc/asymptote.pg doc/asymptote.tp doc/asymptote.vr asy.list
	rm --force doc/asyRefCard.pdf doc/asyRefCard.dvi

#
# download current release based on the changelog entry from sf
# and remove the generated files similarily to the clean target
# code from the calibre packaging
get-orig-source:
	set -e; \
	V=`dpkg-parsechangelog | sed -rn '/^Version:/ {s/^Version: ([0-9.]+).*$$/\1/; p}'`; \
	mkdir -p debian/orig; cd debian/orig; \
	wget -O - https://downloads.sourceforge.net/project/${PKG}/$$V/${PKG}-$$V.src.tgz | gzip -cd | tar x; \
	D=`pwd`; \
	cd ${PKG}*; \
	rm --force doc/latexusage.pdf doc/latexusage.dvi doc/TeXShopAndAsymptote.dvi doc/CAD.dvi; \
	rm --force doc/*.aux doc/*.cp doc/*.cps doc/*.idx doc/*.ins doc/*.log doc/*.toc asy.list; \
	rm --force doc/asyRefCard.pdf doc/asyRefCard.dvi;\
	cd ..;\
	tar c . | gzip -9 > ../../../${PKG}_$$V.orig.tar.gz; \
	cd ../..; rm -r debian/orig