~ubuntu-branches/ubuntu/saucy/ladr/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Frank Lichtenheld
  • Date: 2013-05-25 11:43:32 UTC
  • mfrom: (5.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20130525114332-lkzco1dti2hwrf7v
Tags: 0.0.200911a-2
* QA upload.
* Upload to unstable.
* Change maintainer to QA group.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
# Sample debian/rules that uses debhelper.
4
 
# This file was originally written by Joey Hess and Craig Small.
5
 
# As a special exception, when this file is copied by dh-make into a
6
 
# dh-make output file, you may use that output file without restriction.
7
 
# This special exception was added by Craig Small in version 0.37 of dh-make.
8
 
 
9
2
# Uncomment this to turn on verbose mode.
10
3
#export DH_VERBOSE=1
11
4
 
12
 
include /usr/share/dpatch/dpatch.make
13
 
 
14
 
CFLAGS = -Wall -g
15
 
 
16
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17
 
        CFLAGS += -O0
18
 
else
19
 
        CFLAGS += -O2
20
 
endif
21
 
 
22
 
build: build-stamp
23
 
build-stamp: patch
24
 
        dh_testdir
25
 
 
26
 
        $(MAKE) all CFLAGS="$(CFLAGS)"
27
 
 
28
 
        touch $@
29
 
 
30
 
clean: clean-patched unpatch
31
 
clean-patched:
32
 
        dh_testdir
33
 
        dh_testroot
34
 
        rm -f build-stamp
35
 
 
 
5
LIBDIR="$(CURDIR)/usr/lib/`dpkg-architecture -qDEB_BUILD_MULTIARCH`"
 
6
 
 
7
%:
 
8
        dh $@
 
9
 
 
10
override_dh_auto_build:
 
11
        dh_auto_build -- all
 
12
        mkdir -p $(LIBDIR) && libtool --mode=install install -m0644 ladr/libladr.la $(LIBDIR)
 
13
 
 
14
override_dh_clean:
36
15
        $(MAKE) realclean
37
 
 
38
16
        dh_clean 
39
 
 
40
 
install: build
41
 
        dh_testdir
42
 
        dh_testroot
43
 
        dh_clean -k 
44
 
        dh_installdirs
45
 
 
46
 
        mkdir -p debian/tmp/usr/lib
47
 
        libtool --mode=install cp -a ladr/libladr.la `pwd`/debian/tmp/usr/lib
48
 
 
49
 
binary-indep: build install
50
 
 
51
 
binary-arch: build install
52
 
        dh_testdir
53
 
        dh_testroot
54
 
        dh_installchangelogs Changelog
55
 
        dh_installdocs
56
 
        dh_installexamples
57
 
        find debian/*/usr/share/doc -size 0 -exec rm -f \{\} \;
58
 
        dh_install
59
 
        dh_installman
60
 
        dh_link
61
 
        dh_strip
62
 
        dh_compress
63
 
        dh_fixperms
64
 
        dh_makeshlibs -V
65
 
        dh_installdeb
66
 
        dh_shlibdeps
67
 
        dh_gencontrol
68
 
        dh_md5sums
69
 
        dh_builddeb
70
 
 
71
 
binary: binary-indep binary-arch
72
 
.PHONY: build clean binary-indep binary-arch binary install patch unpatch clean-patch