File: rules

package info (click to toggle)
wmmail 0.64-13
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 1,088 kB
  • ctags: 187
  • sloc: sh: 2,807; ansic: 2,646; makefile: 121; perl: 111
file content (76 lines) | stat: -rwxr-xr-x 1,621 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

package     := wmmail

tmpdir      := $(shell pwd)/debian/$(package)

appspath    := usr/lib/GNUstep/Apps
sharepath   := usr/share/GNUstep/Apps
defaultsdir := etc/GNUstep/Defaults

build: build-stamp
build-stamp:
	dh_testdir

	./configure --with-appspath=/$(appspath)
	$(MAKE)
	touch $@

clean:
	dh_testdir
	dh_testroot
	-$(MAKE) distclean
	-rm -rf *-stamp .deps
	dh_clean

install-stamp: build
	dh_testdir
	dh_clean -k

	dh_installdirs
	$(MAKE) install DESTDIR=$(tmpdir)

	mv $(tmpdir)/$(appspath)/WMMail.app/WMMail \
		$(tmpdir)/usr/bin/WMMail

	rm -rf $(tmpdir)/$(appspath)/WMMail.app/Defaults
	install -m 0644 -p debian/system.WMMail \
		$(tmpdir)/$(defaultsdir)/WMMail

# move images and sounds to /usr/share
	mv $(tmpdir)/$(appspath)/WMMail.app/Anims \
		$(tmpdir)/$(sharepath)/WMMail.app/Anims
	mv $(tmpdir)/$(appspath)/WMMail.app/Sounds \
		$(tmpdir)/$(sharepath)/WMMail.app/Sounds

	dh_installman debian/WMMail.1
	dh_installdocs
	dh_installchangelogs ChangeLog
	dh_installexamples
	dh_installmenu
	dh_link
	touch $@

# Build architecture-independent files here.
binary-indep: build
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install-stamp
#	dh_testversion
	dh_testdir
	dh_testroot
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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

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