~ubuntu-branches/ubuntu/saucy/libs3/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2012-06-10 13:42:33 UTC
  • Revision ID: package-import@ubuntu.com-20120610134233-1sua2hcik88xuue0
Tags: 2.0-1
Initial upload (closes: #676912).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Uncomment this to turn on verbose mode.
 
3
#export DH_VERBOSE=1
 
4
 
 
5
DESTDIR = $(CURDIR)/debian/tmp/usr/
 
6
 
 
7
# These are used for cross-compiling and for saving the configure script
 
8
# from having to guess our platform (since we know it already)
 
9
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
10
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
11
 
 
12
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
13
        CFLAGS += -g
 
14
endif
 
15
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
16
        INSTALL_PROGRAM += -s
 
17
endif
 
18
 
 
19
clean:
 
20
        dh_testdir
 
21
 
 
22
        rm -f install-stamp build-stamp
 
23
        $(MAKE) clean
 
24
        dh_clean
 
25
 
 
26
build-arch: build-stamp
 
27
build-indep: build-stamp
 
28
 
 
29
build: build-arch build-indep
 
30
 
 
31
build-stamp:
 
32
        dh_testdir
 
33
        $(MAKE)
 
34
        touch $@
 
35
 
 
36
install: install-stamp
 
37
 
 
38
install-stamp: build
 
39
        dh_testdir
 
40
 
 
41
        $(MAKE) install DESTDIR=$(DESTDIR)
 
42
        touch $@
 
43
 
 
44
binary-indep: build install
 
45
 
 
46
binary-arch: build install
 
47
        dh_testdir
 
48
        dh_testroot
 
49
        dh_installdocs -a
 
50
        dh_installchangelogs -a
 
51
        dh_install -a
 
52
        dh_makeshlibs -a
 
53
        dh_strip -a
 
54
        dh_compress -a
 
55
        dh_fixperms -a
 
56
        dh_installdeb -a
 
57
        dh_shlibdeps -a
 
58
        dh_gencontrol -a
 
59
        dh_md5sums -a
 
60
        dh_builddeb -a
 
61
 
 
62
binary: binary-indep binary-arch
 
63
.PHONY: clean build binary-indep binary-arch binary install