File: rules

package info (click to toggle)
silo 1.4.14%2Bgit20120819-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,644 kB
  • sloc: ansic: 13,383; asm: 3,004; makefile: 351; sh: 102; perl: 85
file content (55 lines) | stat: -rwxr-xr-x 1,120 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
#!/usr/bin/make -f

STAMP_DIR  = stampdir
BUILD_TREE = build-tree
CC         = "gcc -m32"

build: $(BUILD_TREE) build-arch build-indep

build-arch: build-stamp

build-indep: build-stamp

build-stamp:
	dh_testdir
	cd $(BUILD_TREE) && $(MAKE) CC=$(CC)
	touch build-stamp

$(BUILD_TREE):
	mkdir $(BUILD_TREE)
	tar cf - --exclude debian . | (cd $(BUILD_TREE) && tar xf -)
	ln -s ../debian/patches $(BUILD_TREE)/patches  
	cd $(BUILD_TREE) && test -z "$$(quilt series)" || quilt push -a

clean:
	dh_testdir
	rm -rf $(BUILD_TREE) *-stamp
	dh_clean

install: build 
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	cd $(BUILD_TREE) && $(MAKE) DESTDIR="$(CURDIR)/debian/silo" install
	install -m755 debian/local/siloconfig debian/silo/usr/sbin/siloconfig

binary-indep:

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs $(BUILD_TREE)/docs/README $(BUILD_TREE)/docs/README.tilo $(BUILD_TREE)/first-isofs/README.SILO_ISOFS
	dh_installchangelogs
	dh_installman debian/manpages/*
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch