File: rules

package info (click to toggle)
trigger-data 0.5.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 7,356 kB
  • ctags: 7
  • sloc: makefile: 53
file content (79 lines) | stat: -rwxr-xr-x 1,775 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
#!/usr/bin/make -f
# -*- makefile -*-

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

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

# top-level files that are installed
INSTALLFILES=crap.obj\
	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 $(INSTALLFILES); do\
		cp $$i debian/$(PACKAGE)/$(DATADIR); \
	done
	for i in $(INSTALLDIRS); do\
		cp -r $$i debian/$(PACKAGE)/$(DATADIR); \
	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:

# just for convenience...
#
# directory where the .orig.tar.gz should reside... either relative to
# top-src-dir or an absolute path.
ORIGTARLOCATION=../tarballs/
get-orig-source:
	UPSTREAMURL=$(shell uscan --dehs | grep upstream-url | cut -f 2 -d\> | cut -f 1 -d\<);\
	UPSTREAMVERSION=$(shell uscan --dehs | grep debian-mangled-uversion | cut -f 2 -d\> | cut -f 1 -d\<);\
	p=$$(pwd);\
	cd $(ORIGTARLOCATION);\
	wget $${UPSTREAMURL};\
	bunzip2 trigger-$${UPSTREAMVERSION}-data.tar.bz2;\
	gzip -9 trigger-$${UPSTREAMVERSION}-data.tar;\
	ln -s trigger-$${UPSTREAMVERSION}-data.tar.gz $(PACKAGE)_$${UPSTREAMVERSION}.orig.tar.gz;\
	cd $$p


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