File: rules

package info (click to toggle)
e-uae 0.8.29-WIP4-6
  • links: PTS, VCS
  • area: contrib
  • in suites: lenny
  • size: 7,116 kB
  • ctags: 11,113
  • sloc: ansic: 96,763; sh: 3,599; cpp: 1,471; asm: 974; objc: 611; makefile: 497; perl: 216
file content (99 lines) | stat: -rwxr-xr-x 2,099 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/make -f
# $Id: rules,v 1.10 2003/10/13 13:22:26 absurd Exp $
#
# debian.rules file - for UAE, The Ubiquitous Amiga Emulator

export DH_VERBOSE=0

# all binaries
binaries=uae_readdisk uae

build: build-stamp

patch:
	# Apply patches
	QUILT_PATCHES=debian/patches quilt push -a || test $$? -eq 2

uae:
	[ ! -f Makefile ] || $(MAKE) distclean
	-rm -f config.cache
	./configure --with-x --with-sdl-gfx --enable-sound --enable-threads
	make
	mv src/readdisk uae_readdisk
	mv src/uae uae

build-stamp: patch uae
	dh_testdir
	# at least one build run must have been succesful

	[ -e uae_readdisk ]
	touch $@

clean: patch binary-clean
	dh_testdir
	[ ! -f Makefile ] || $(MAKE) distclean
	-rm -f build-stamp ${binaries}

	# Remove patches
	-QUILT_PATCHES=debian/patches quilt pop -a || test $$? -eq 2
	-rm -rf .pc

	# Update config.*
	-test -r /usr/share/misc/config.sub && \
	   cp -f /usr/share/misc/config.sub config.sub
	-test -r /usr/share/misc/config.guess && \
	   cp -f /usr/share/misc/config.guess config.guess


binary-indep: build
	dh_testdir
	dh_testroot

binary-arch: build
	dh_testdir
	dh_testroot

	# Install the binaries
	dh_installdirs usr/bin
	install ${binaries} debian/e-uae/usr/bin

	# Install Support Files (Amiga binaries && their sources)
	install -d debian/e-uae/usr/share/uae/
	tar czvf debian/e-uae/usr/share/uae/amiga.tar.gz amiga

	# Install Pixmaps
	install -d debian/e-uae/usr/share/pixmaps
	cp debian/uae-menu.xpm debian/uae.xpm debian/e-uae/usr/share/pixmaps

	dh_installdocs docs/

	dh_installexamples debian/uae-confwrap
	dh_installmenu

	# Install all man pages into uae
	dh_installman debian/man/uae_readdisk.1 debian/man/uae.1

	dh_installchangelogs src/ChangeLog

	dh_compress

	dh_strip --dbg-package=e-uae-dbg
	dh_fixperms

	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-clean:
	dh_testdir
	dh_clean
	rm -f debian/configure.log

binary:	binary-clean binary-indep binary-arch

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

.PHONY: binary binary-arch binary-indep binary-clean clean patch