File: rules

package info (click to toggle)
swi-prolog-doc 5.6.58-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 5,168 kB
  • sloc: makefile: 43
file content (55 lines) | stat: -rwxr-xr-x 1,311 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
#!/usr/bin/make -f

get-orig-source:
	ORIG=swi-prolog-doc_`dpkg-parsechangelog | awk '/Version:/ {print $$2}' | sed 's/-[0-9]*$\//g'`.orig.tar.gz; \
		set -e; DIR=swi-prolog-doc; mkdir $$DIR; cd $$DIR; \
		for URL in \
			SWI-Prolog/refman/refman.pdf \
			SWI-Prolog/refman/HTMLmanual.tar.gz \
			xpce/doc/userguide/userguide.pdf \
			xpce/doc/userguide/userguide.html.tgz; \
		do \
			wget http://gollem.science.uva.nl/cgi-bin/nph-download/$$URL; \
		done; cd ..; \
		tar cvvfz $$ORIG $$DIR; \
		rm -rf $$DIR; \
		echo "Upstream tarball is: $$ORIG"

build:

clean:
	dh_testdir
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# SWI-prolog manual
	cp refman.pdf debian/swi-prolog-doc/usr/share/doc/swi-prolog-doc
	tar xzf HTMLmanual.tar.gz
	mv Manual debian/swi-prolog-doc/usr/share/doc/swi-prolog-doc

	# XPCE manual
	cp userguide.pdf debian/swi-prolog-doc/usr/share/doc/swi-prolog-doc
	tar xzf userguide.html.tgz
	mv UserGuide debian/swi-prolog-doc/usr/share/doc/swi-prolog-doc

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs
	dh_compress -X.pdf
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch:

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install get-orig-source