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 
2
4
3
# Uncomment this to turn on verbose mode.
5
# Uncomment this to turn on verbose mode.
4
#export DH_VERBOSE=1
6
#export DH_VERBOSE=1
5
7
6
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
8
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
9
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
10
9
CFLAGS = -Wall -g
11
CFLAGS = -Wall -g
10
LDFLAGS = -Wl,-z,defs
12
#LDFLAGS = -Wl,-z,defs
11
13
12
#build qt4 UI only
14
#build qt4 UI only
13
export QMAKE=qmake-qt4
15
export QMAKE=qmake-qt4
14
16
15
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
...
...
25
            --build=$(DEB_BUILD_GNU_TYPE) \
27
            --build=$(DEB_BUILD_GNU_TYPE) \
26
            --mandir=\$${prefix}/share/man \
28
            --mandir=\$${prefix}/share/man \
27
            --prefix=/usr
29
            --prefix=/usr
28
30
29
build: build-stamp
31
build: build-stamp
30
build-stamp: config.status
32
build-stamp: $(QUILT_STAMPFN) config.status
31
    dh_testdir
33
    dh_testdir
32
    $(MAKE)
34
    $(MAKE)
33
    touch $@
35
    touch $@
34
36
35
clean:
37
clean: unpatch
36
    dh_testdir
38
    dh_testdir
37
    dh_testroot
39
    dh_testroot
38
    rm -f build-stamp config.log
40
    rm -f build-stamp config.log
39
    [ ! -f Makefile ] || $(MAKE) distclean
41
    [ ! -f Makefile ] || $(MAKE) distclean
40
    dh_clean Makefile
42
    dh_clean Makefile
...
...
42
install:
44
install:
43
    dh_testdir
45
    dh_testdir
44
    dh_testroot
46
    dh_testroot
45
    dh_prep
47
    dh_prep
46
    dh_installdirs
48
    dh_installdirs
47
48
    $(MAKE) prefix=$(CURDIR)/debian/recoll/usr install
49
    $(MAKE) prefix=$(CURDIR)/debian/recoll/usr install
50
  (cd python/recoll;python setup.py install --install-layout=deb --root=$(CURDIR)/debian/recoll/ )
49
51
50
binary-arch: build install
52
binary-arch: build install
51
    dh_testdir
53
    dh_testdir
52
    dh_testroot
54
    dh_testroot
53
    dh_installchangelogs ChangeLog
55
    dh_installchangelogs ChangeLog