~x2go/x2go/pinentry-x2go_build-main

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Mike Gabriel
  • Date: 2012-06-13 12:55:37 UTC
  • Revision ID: git-v1:d2060291d5cc7beb92f78168e48ececfe765d552
Strip code project down to its essentials, remove a lot of unneeded cruft. / Make code tree fully build with autotools, see README file for further info.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
4
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
5
 
 
6
 
CFLAGS = -Wall -g
7
 
 
8
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
9
 
        CFLAGS += -O0
10
 
else
11
 
        CFLAGS += -O2
12
 
endif
13
 
 
14
 
config.status: configure
15
 
        dh_testdir
16
 
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"  --disable-pinentry-gtk --disable-pinentry-gtk2 --disable-pinentry-qt 
17
 
        cd pinentry-x2go && qmake-qt4
18
 
 
19
 
build: build-stamp
20
 
build-stamp:  config.status
21
 
        dh_testdir
22
 
        $(MAKE)
23
 
        cd pinentry-x2go && make
24
 
        touch $@
25
 
 
26
 
clean:
27
 
        dh_testdir
28
 
        dh_testroot
29
 
        rm -f build-stamp 
30
 
        -$(MAKE) distclean
31
 
        cd pinentry-x2go && if [ -e Makefile ]; then $(MAKE) distclean; fi
32
 
        dh_clean 
33
 
 
34
 
install: build
35
 
        dh_testdir
36
 
        dh_testroot
37
 
        dh_clean -k 
38
 
        dh_installdirs
39
 
        cd pinentry-x2go && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/pinentry-x2go install
40
 
 
41
 
# Build architecture-independent files here.
42
 
binary-indep: build install
43
 
# We have nothing to do by default.
44
 
 
45
 
# Build architecture-dependent files here.
46
 
binary-arch: build install
47
 
        dh_testdir
48
 
        dh_testroot
49
 
        dh_installchangelogs ChangeLog
50
 
        dh_installdocs
51
 
        dh_installexamples
52
 
        dh_installman
53
 
        dh_link
54
 
        dh_strip
55
 
        dh_compress
56
 
        dh_fixperms
57
 
        dh_installdeb
58
 
        dh_shlibdeps
59
 
        dh_gencontrol
60
 
        dh_md5sums
61
 
        dh_builddeb
62
 
 
63
 
binary: binary-indep binary-arch
64
 
.PHONY: build clean binary-indep binary-arch binary install 
 
3
export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
 
4
export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
 
5
export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
 
6
export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
7
 
 
8
%:
 
9
        dh --with autoreconf $@
 
10
 
 
11
override_dh_auto_install:
 
12