aboutsummaryrefslogtreecommitdiff
path: root/dists/debian/rules
blob: 2c907f011af48d140fdc6ff045709af64fc9a376 (plain)
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

build: doc/README.pdf scummvm

doc/README.pdf:
	(cd doc; latex readme.tex)
	(cd doc; latex readme.tex)
	dvips -q -f doc/readme.dvi | gs -q -dNOPAUSE -dBATCH \
	                                -sDEVICE=pdfwrite \
					-sOutputFile=doc/README.pdf -

scummvm:
	dh_testdir
	./configure
	$(MAKE)

clean:
	dh_testdir
	dh_testroot
	-$(MAKE) distclean
	-rm doc/readme.aux doc/readme.dvi doc/readme.log doc/readme.out \
	    doc/readme.toc doc/README.pdf
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs
	install -m0755 scummvm debian/scummvm/usr/games/scummvm
	install -m0644 scummvm.xpm debian/scummvm/usr/share/icons

binary: binary-arch

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs NEWS
	dh_installman
	dh_installmenu
	dh_strip
	dh_compress -X.pdf
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep:

.PHONY: build clean binary install binary-arch binary-indep