Switch to unified view

a/packaging/debian/debianrclqt4/rules b/packaging/debian/debianrclqt4/rules
1
#!/usr/bin/make -f
1
#!/usr/bin/make -f
2
3
include /usr/share/quilt/quilt.make 
4
2
5
# Uncomment this to turn on verbose mode.
3
# Uncomment this to turn on verbose mode.
6
#export DH_VERBOSE=1
4
#export DH_VERBOSE=1
7
5
8
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
...
...
26
            --host=$(DEB_HOST_GNU_TYPE) \
24
            --host=$(DEB_HOST_GNU_TYPE) \
27
            --build=$(DEB_BUILD_GNU_TYPE) \
25
            --build=$(DEB_BUILD_GNU_TYPE) \
28
            --mandir=\$${prefix}/share/man \
26
            --mandir=\$${prefix}/share/man \
29
            --prefix=/usr
27
            --prefix=/usr
30
28
29
build: build-arch build-indep
31
build: build-stamp
30
build-arch: build-stamp
31
build-indep: build-stamp
32
build-stamp: $(QUILT_STAMPFN) config.status
32
build-stamp: config.status
33
    dh_testdir
33
    dh_testdir
34
    $(MAKE)
34
    $(MAKE)
35
    touch $@
35
    touch $@
36
36
37
clean: unpatch
37
clean:
38
    dh_testdir
38
    dh_testdir
39
    dh_testroot
39
    dh_testroot
40
    rm -f build-stamp config.log
40
    rm -f build-stamp config.log
41
    [ ! -f Makefile ] || $(MAKE) distclean
41
    [ ! -f Makefile ] || $(MAKE) distclean
42
    dh_clean Makefile
42
    dh_clean Makefile
...
...
44
install:
44
install:
45
    dh_testdir
45
    dh_testdir
46
    dh_testroot
46
    dh_testroot
47
    dh_prep
47
    dh_prep
48
    dh_installdirs
48
    dh_installdirs
49
49
    $(MAKE) prefix=$(CURDIR)/debian/recoll/usr install
50
    $(MAKE) STRIP=ls prefix=$(CURDIR)/debian/tmp/usr install
50
  (cd python/recoll;python setup.py install --install-layout=deb --root=$(CURDIR)/debian/recoll/ )
51
  (cd python/recoll; python setup.py install \
52
                                     --install-layout=deb \
53
                                     --prefix=$(CURDIR)/debian/tmp/usr )
51
54
52
binary-arch: build install
55
binary-arch: build install
53
    dh_testdir
56
    dh_testdir
54
    dh_testroot
57
    dh_testroot
55
    dh_installchangelogs ChangeLog
58
    dh_installchangelogs ChangeLog
56
    dh_installdocs README
59
    dh_installdocs README
57
    dh_installmenu
60
    dh_installmenu
58
    dh_installman
61
    dh_installman
62
  dh_install --sourcedir=debian/tmp
59
    dh_link
63
    dh_link
60
    dh_strip
64
    dh_strip
61
    dh_compress
65
    dh_compress
62
    dh_fixperms
66
    dh_fixperms
63
    dh_installdeb
67
    dh_installdeb
...
...
67
    dh_builddeb
71
    dh_builddeb
68
72
69
binary-indep: build install
73
binary-indep: build install
70
74
71
binary: binary-indep binary-arch
75
binary: binary-indep binary-arch
72
.PHONY: build clean binary-indep binary-arch binary install
76
.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install