File: rules

package info (click to toggle)
sawfish-themes 0.13%2Bnmu1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 5,780 kB
  • sloc: lisp: 13,333; makefile: 67; perl: 2; xml: 2
file content (90 lines) | stat: -rwxr-xr-x 2,318 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/make -f
# $Id: rules 714M 2012-06-18 06:31:55Z (local) $

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


DOCDIR=$(CURDIR)/debian/sawfish-themes/usr/share/doc/sawfish-themes
THEMEDIR=$(CURDIR)/debian/sawfish-themes/usr/share/sawfish/themes
THEMES=2YearsToNever absolute-metal Anonymous Aquiline BWM Big \
	Blackwindow Bubbles_Exact CoolClean Derivative DoubleHeliX Elberg \
	FinalStep Empire gorilla Greene2.0 Hacksaw HeliX Klarth \
	Microtene OrangeJuice SawLook SawthenaForever Strap Studio \
	Titanium T-16-blue T-16-red T-16-yellow V bluefoo gorillaz \
	mxflat typo

build-arch: build
build-indep: build

build: build-stamp
build-stamp:
	dh_testdir
	QUILT_PATCHES=debian/patches quilt push -a
	# arrange the upstream documentation to dh_installdocs' liking
	for t in $(THEMES) ; do \
		for f in $$t/README* ; do \
			[ -e "$$f" ] || continue ; \
			rn=`basename $$f|sed "s/README/README.$$t/"` ; \
			install -D "$$f" $(CURDIR)/debian/doc/$$rn ; \
		done ; \
		for f in $$t/TODO* ; do \
			[ -e "$$f" ] || continue ; \
			rn=`basename $$f|sed "s/TODO/TODO.$$t/"` ; \
			install -D "$$f" $(CURDIR)/debian/doc/$$rn ; \
		done ; \
		for f in changelog ChangeLog CHANGES CHANGELOG ; do \
			[ -e "$$t/$$f" ] || continue ; \
			install -D "$$t/$$f" \
			$(CURDIR)/debian/doc/changelog.$$t ; \
		done \
	done
	
	# no compile stage
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -rf $(CURDIR)/debian/doc
	dh_clean
	QUILT_PATCHES=debian/patches quilt pop -a || :

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs

	for t in $(THEMES) ; do \
		mkdir -p $(THEMEDIR)/$$t ; \
		find $$t/* ! -path '*.xvpics*' -a \
			\( -name \*.png \
			  -o -name \*.jl \
			  -o -name \*.xpm \) | \
		  xargs -i install -m 0644 -D {} $(THEMEDIR)/{} ;\
	done

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs $(CURDIR)/debian/doc/*
	dh_installchangelogs debian/changelog-stub
	#dh_installexamples
	#dh_installman
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

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