File: rules

package info (click to toggle)
timidity-patches 0.1-4
  • links: PTS
  • area: main
  • in suites: potato, slink
  • size: 9,140 kB
  • ctags: 2
  • sloc: makefile: 28
file content (43 lines) | stat: -rwxr-xr-x 936 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
#! /usr/bin/make -f

.PHONY: build clean binary binary-indep binary-arch checkdir checkroot

package = timidity-patches
d=$(shell pwd)/debian/tmp

build: checkdir

clean: checkdir
	rm -rf debian/{files,substvars,tmp}
	find . -name \*~ -print0 | xargs -0 $(RM)

binary:	binary-indep binary-arch

binary-arch:

binary-indep:
	rm -rf $(d)

	install -d $(d)/DEBIAN 
	install -d $(d)/usr/lib/timidity/patches
	install -d $(d)/usr/doc/$(package)

	cp -p cfg/*.cfg $(d)/usr/lib/timidity/patches
	cp -p pat/*.pat $(d)/usr/lib/timidity/patches

	cp debian/changelog $(d)/usr/doc/$(package)/changelog.Debian
	gzip -9v $(d)/usr/doc/$(package)/*
	cp debian/copyright $(d)/usr/doc/$(package)/copyright

	chown -R root.root $(d)
	find $(d) \! -type d -print0 | xargs -0 chmod 644
	find $(d) -type d -print0 | xargs -0 chmod 755

	dpkg-gencontrol -p$(package) -P$(d)
	dpkg --build $(d) ..

checkdir:
	test -d pat

checkroot:
	test "`whoami`" = "root"