File: rules

package info (click to toggle)
devtodo 0.1.20-6.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,116 kB
  • sloc: sh: 9,134; cpp: 3,943; perl: 112; makefile: 73; ansic: 3; csh: 2
file content (47 lines) | stat: -rwxr-xr-x 1,047 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

destdir=$(CURDIR)/debian/devtodo/

override_dh_auto_configure:
	dh_autoreconf
	dh_auto_configure -- CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
	dh build
	touch build-stamp

override_dh_auto_build:
	cp /usr/bin/libtool ./
	dh_auto_build

clean:
	dh_testdir
	dh_auto_clean
	dh_autoreconf_clean
	dh_clean

install: build
	dh install
	rm $(destdir)/usr/bin/tdl $(destdir)/usr/share/man/man1/tdl.1.gz
	cp contrib/devtodo.bash-completion debian/
	dh_bash-completion

binary-indep: build install

override_dh_fixperms:
	dh_fixperms
	# for scripts.sh and scripts.tcsh
	chmod 644 $(CURDIR)/debian/devtodo/usr/share/doc/devtodo/examples/scripts.*sh

binary-arch: build install
	dh binary-arch

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