File: rules

package info (click to toggle)
tandem-mass 1%3A20151215-4
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 6,056 kB
  • ctags: 1,971
  • sloc: cpp: 18,693; xml: 197; makefile: 88
file content (86 lines) | stat: -rwxr-xr-x 1,481 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
80
81
82
83
84
85
86
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.

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

# Hardening stuff, see http://wiki.debian.org/Hardening
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)

# applying quilt the modern way (http://pkg-perl.alioth.debian.org/howto/quilt.html)
%:
	dh $@


.PHONY: build
build: build-stamp


build-stamp: 
	dh_testdir
	dh_prep

# Proper Makefile settings have been defined in src/Makefile_ubuntu
# with a corresponding patch.

	cd src && $(MAKE) -f Makefile_ubuntu

	touch build-stamp


.PHONY: clean
clean: 
	dh_testdir
	dh_testroot
	dh_clean 

	rm -f bin/tandem
	rm -f src/*.d src/*.o

	rm -f build-stamp


.PHONY: build-indep
build-indep:
# We have nothing to do by default.


.PHONY: build-arch
build-arch: build


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


# Build architecture-dependent files here.
.PHONY: binary-arch
binary-arch: build-arch
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_installexamples
	dh_install
	dh_installman
	dh_lintian
	dh_strip --dbg-package=tandem-mass-dbg -a
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb


.PHONY: binary
binary: binary-indep binary-arch