File: rules

package info (click to toggle)
congruity 15-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 328 kB
  • sloc: python: 1,552; makefile: 64
file content (42 lines) | stat: -rwxr-xr-x 944 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
#!/usr/bin/make -f
# -*- makefile -*-

# Path to the debian directory
DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname )

export UPSTREAM_VERSION = $(shell dpkg-parsechangelog | sed -rn '/^Version:/ {s/^Version: ([0-9.]+).*$$/\1/; p}')

build:

clean:
	dh_testdir
	dh_testroot
	dh_clean

install:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) PREFIX=/usr DESTDIR=$(CURDIR)/debian/congruity install

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installmime
	dh_installman -vi congruity.1
	dh_installdocs -vi
	dh_installchangelogs -vi Changelog
	dh_compress -vi
	dh_fixperms -vi
	dh_installdeb -vi
	dh_gencontrol -vi
	dh_md5sums -vi
	dh_builddeb -vi

# Build architecture-dependent files here.
binary-arch: build install

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