File: rules

package info (click to toggle)
trigger-rally-data 0.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,360 kB
  • ctags: 6
  • sloc: makefile: 42
file content (61 lines) | stat: -rwxr-xr-x 1,125 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
#!/usr/bin/make -f
# -*- makefile -*-

# must match DATADIR of trigger package.
DATADIR=usr/share/games/trigger-rally
# package name
PACKAGE=trigger-rally-data
# top-level dirs that are installed
INSTALLDIRS=events\
	fonts\
	maps\
	materials\
	plugins\
	sounds\
	textures\
	vehicles

# top-level files that go to /etc and are linked to 
# DATADIR
LINKEDCONFFILES=trigger.config.defs

clean:
	dh_testdir
	dh_testroot
	dh_clean --exclude=vehicles/seat/seat.vehicle.orig

install: 
	dh_testdir
	dh_testroot
	dh_clean --exclude=vehicles/seat/seat.vehicle.orig
	dh_installdirs

	# manually installing all files
	for i in $(INSTALLDIRS); do\
		cp -r $$i debian/$(PACKAGE)/$(DATADIR); \
	done
	for i in $(LINKEDCONFFILES); do\
		cp -r $$i debian/$(PACKAGE)/etc; \
		dh_link etc/$$i $(DATADIR)/$$i; \
	done


binary-arch: build install

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# we don't build anything!
build:

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