File: rules

package info (click to toggle)
raincat 1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 10,712 kB
  • sloc: haskell: 2,234; makefile: 63; sh: 1
file content (90 lines) | stat: -rwxr-xr-x 2,001 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

config: config-stamp
config-stamp: 
	dh_testdir
	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
	cd debian; for f in *.sng; do sng "$$f"; done
	touch $@

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: config
	dh_testdir
	cd src && ghc -O --make Main.hs
	mv src/Main raincat
	touch $@

clean: 
	dh_testdir
	dh_testroot
	rm -fv build-stamp config-stamp
	rm -fv raincat src/Main
	rm -fv `find . -name "*.o"`
	rm -fv `find . -name "*.hi"`
	rm -fv debian/*.png
	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make unpatch
	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
#	$(MAKE) DESTDIR=$(CURDIR)/debian/raincat install

# Build architecture-independent files here.
binary-indep: install

# Build architecture-dependent files here.
binary-arch: install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_installexamples
	dh_install
	dh_installmenu
#	dh_installdebconf
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_python
#	dh_installinit
#	dh_installcron
#	dh_installinfo
	dh_installman debian/raincat.6
#	dh_desktop
	dh_link
	dh_strip --dbg-package=raincat-dbg
	dh_compress
	dh_fixperms
#	dh_perl
#	dh_makeshlibs
	[ ! -e /usr/bin/dh_buildinfo ] || dh_buildinfo
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

get-orig-source:
	rm -fv Raincat.tar.gz
	wget http://www.contrib.andrew.cmu.edu/~gchin/downloads/Raincat.tar.gz
	rm -rfv raincat
	tar xvfz Raincat.tar.gz
	cd raincat && rm -fv raincat src/Main
	cd raincat && rm -fv `find . -name "*.o"`
	cd raincat && rm -fv `find . -name "*.hi"`
	mv raincat raincat-1.1
	rm -fv ../raincat_1.1.orig.tar.gz
	tar cvfz ../raincat_1.1.orig.tar.gz raincat-1.1
	rm -rfv raincat-1.1

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