~ubuntu-branches/ubuntu/trusty/oxref/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Frank B. Brokken
  • Date: 2011-06-26 14:44:59 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110626144459-nzb5emn7e29lsuog
Tags: 0.90.01-1
* New upstream
  + release recognizes CXXFLAGS and LDFLAGS environment variables
* [GD] Support 'noopt' via DEB_BUILD_OPTIONS.
* [GD] Add build-* targets.
* [GD] Drop configure* targets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
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
3
 
9
4
# Uncomment this to turn on verbose mode.
10
 
#export DH_VERBOSE=1
11
 
 
12
 
# fill in the project's name:
13
 
PROJECT=oxref
14
 
 
15
 
configure: configure-stamp
16
 
configure-stamp:
17
 
        dh_testdir
18
 
        # Add here commands to configure the package.
19
 
        touch configure-stamp
20
 
 
21
 
 
22
 
build: build-stamp
23
 
 
24
 
build-stamp: configure-stamp
25
 
        dh_testdir
26
 
 
 
5
# export DH_VERBOSE=1
 
6
 
 
7
CXXFLAGS = -g
 
8
 
 
9
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
10
        CXXFLAGS += -O0
 
11
else
 
12
        CXXFLAGS += -O2
 
13
endif
 
14
 
 
15
build: build-indep build-arch
 
16
build-indep:
 
17
build-arch: build-stamp
 
18
build-stamp:
 
19
        dh_testdir
27
20
        # compile the package.
28
21
        ./build xref
29
22
        ./build man
32
25
clean:
33
26
        dh_testdir
34
27
        dh_testroot
35
 
        rm -f build-stamp configure-stamp
36
 
 
37
 
        # Add here commands to clean up after the build process.
 
28
        rm -f build-stamp
38
29
        ./build distclean
39
 
 
40
30
        dh_clean
41
31
 
42
32
install: build
48
38
        # Add here commands to install the package into debian/bisonc++.
49
39
        ./build install debian/oxref
50
40
 
51
 
 
52
 
# Build architecture-independent files here.
53
 
binary-indep: build install
54
 
# We have nothing to do by default.
55
 
 
56
 
# Build architecture-dependent files here.
57
 
binary-arch: build install
 
41
binary-indep:
 
42
 
 
43
binary-arch: build-arch install
58
44
        dh_testdir
59
45
        dh_testroot
60
46
        dh_installchangelogs
61
47
        dh_installdocs
62
 
        dh_installexamples
63
 
        #dh_installman
 
48
#       dh_installexamples
 
49
#       dh_installman
64
50
        dh_link
65
51
        dh_strip
66
52
        dh_compress
77
63
# catches silent file content forges at the upstream server side
78
64
# Archive downloaded from https://www.icce.rug.nl/debian/oxref
79
65
#   file: oxref_x.y.z.tar.gz
80
 
MD5TRUSTED := cbd27547bf4702426d270428b4a4e21a
 
66
MD5TRUSTED := 09564ede534dd4ec55d872d9aa8676eb
81
67
 
82
68
DEBVERSION:=$(shell head -n 1 debian/changelog | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
83
69
UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
89
75
SVNTRUNK   := https://svn.sourceforge.net/svnroot/bisoncpp/trunk/oxref
90
76
 
91
77
get-orig-source:
92
 
        @@dh_testdir
93
78
        @@[ -d ../tarballs/. ]||mkdir -p ../tarballs
94
79
 
95
80
        -@if [ ! -f ../tarballs/$(DEFILE) ] ; then \
110
95
 
111
96
 
112
97
get-svn-trunk:
113
 
        @@dh_testdir
114
98
        @@[ -d ../tarballs/. ]||mkdir -p ../tarballs
115
99
        rm -rf ../tarballs/$(DEFILE) ../tarballs/oxref-svn-trunk
116
100
        svn --force export $(SVNTRUNK) ../tarballs/oxref-svn-trunk
122
106
 
123
107
print-version:
124
108
        @@echo "Debian version:  $(DEBVERSION)"
125
 
        @@echo "Upstream version:        $(UPVERSION)"
 
109
        @@echo "Upstream version: $(UPVERSION)"
126
110
 
127
111
 
128
112
binary: binary-indep binary-arch
129
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
113
.PHONY: build build-indep build-arch clean binary-indep binary-arch binary install