File: rules

package info (click to toggle)
imwheel 1.0.0pre12-12
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 2,044 kB
  • ctags: 546
  • sloc: ansic: 4,347; sh: 883; makefile: 98
file content (78 lines) | stat: -rwxr-xr-x 1,615 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
#!/usr/bin/make -f

include /usr/share/quilt/quilt.make

config.status: configure
	dh_testdir

	CPPFLAGS="$(shell export DEB_BUILD_MAINT_OPTIONS=hardening=+all; dpkg-buildflags --get CPPFLAGS)" \
	CFLAGS="$(shell export DEB_BUILD_MAINT_OPTIONS=hardening=+all; dpkg-buildflags --get CFLAGS) -Wall" \
	LDFLAGS="$(shell export DEB_BUILD_MAINT_OPTIONS=hardening=+all; dpkg-buildflags --get LDFLAGS)" \
	./configure \
	--host=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) \
	--build=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) \
	--prefix=/usr --mandir=\$${prefix}/share/man

build: build-arch build-indep

build-arch: build-stamp

build-indep: build-stamp

build-stamp: config.status
	dh_testdir

	$(MAKE)

	touch build-stamp

binary: binary-arch binary-indep

binary-arch: build install

binary-indep: build install

install: build-stamp
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs

	$(MAKE) install DESTDIR=$(CURDIR)/debian/imwheel

	dh_install
	dh_installdocs
	dh_installchangelogs ChangeLog
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -f mdetect/Makefile

	[ ! -f Makefile ] || $(MAKE) distclean

	dh_clean

# This is for the package maintainer's convenience only
buildprep: clean
	dh_testdir
	dh_testroot
	dh_quilt_patch
	ln -s /usr/share/automake-1.14/compile compile
	autoreconf
	rm -rf autom4te.cache
	-rm -f config.h.in~
	rm compile
	dh_quilt_unpatch
	-rm -f debian/imwheel.debhelper.log

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