Switch to unified view

a b/packaging/debian/debianunitylens/rules
1
#!/usr/bin/make -f
2
3
# Uncomment this to turn on verbose mode.
4
#export DH_VERBOSE=1
5
6
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
9
config.status: configure
10
  dh_testdir
11
  ./configure --host=$(DEB_HOST_GNU_TYPE) \
12
          --build=$(DEB_BUILD_GNU_TYPE) \
13
          --mandir=\$${prefix}/share/man \
14
          --prefix=/usr \
15
          --sysconfdir=/etc
16
17
build: build-stamp
18
build-stamp: config.status
19
  dh_testdir
20
  $(MAKE)
21
  touch $@
22
23
clean: 
24
  dh_testdir
25
  dh_testroot
26
  rm -f build-stamp config.log
27
  [ ! -f Makefile ] || $(MAKE) distclean
28
  dh_clean Makefile
29
30
install:
31
  dh_testdir
32
  dh_testroot
33
  dh_prep
34
  dh_installdirs
35
  $(MAKE) prefix=$(CURDIR)/debian/recoll-lens/usr install
36
37
binary-indep: build install
38
  dh_testdir
39
  dh_testroot
40
  dh_installchangelogs ChangeLog
41
  dh_installdocs README
42
  dh_link
43
  dh_compress
44
  dh_fixperms
45
  dh_installdeb
46
  dh_gencontrol
47
  dh_md5sums
48
  dh_builddeb
49
50
binary: binary-indep
51
.PHONY: build clean binary-indep binary-arch binary install