aboutsummaryrefslogtreecommitdiff
path: root/dists/debian/rules
blob: f8f64aea071d33a8a91bd850c3716c383d96aae6 (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
54
#!/usr/bin/make -f

build: 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 --prefix=/usr --bindir=/usr/games --datadir=/usr/share/games --mandir=/usr/share/man
	$(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
	$(MAKE) install DESTDIR=debian/scummvm
	install -m 644 dists/scummvm.desktop debian/scummvm/usr/share/applications
	install -m 644 icons/scummvm.svg debian/scummvm/usr/share/pixmaps

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