~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
PACKAGE = aspectc++
7
7
 
8
 
CFLAGS = -Wall -g
9
 
 
10
 
PUMA_CONFIG=$(PWD)/puma.config
 
8
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
9
        CFLAGS := -Wall -O0 -g
 
10
else
 
11
        CFLAGS := -Wall -O2 -g
 
12
endif
 
13
export CFLAGS
 
14
PUMA_CONFIG=$(CURDIR)/puma.config
11
15
 
12
16
test-builds: build-stamp
13
17
        Ag++/bin/linux-release/ag++ --gen_config
14
18
        $(MAKE) -C AspectC++/ SHARED=1 PUMA_CONFIG=$(PUMA_CONFIG) test
15
 
        PATH=$(PWD)/AspectC++/bin/linux-release:$(PATH) \
 
19
        PATH=$(CURDIR)/AspectC++/bin/linux-release:$(PATH) \
16
20
        $(MAKE) -C Ag++/      SHARED=1 PUMA_CONFIG=$(PUMA_CONFIG) test
17
21
 
18
22
build: build-stamp test-builds
19
23
build-stamp:
20
24
        dh_testdir
21
 
        $(MAKE) -C Puma/ compile
 
25
        # save a copy of Puma that will be woven later
 
26
        cp -r Puma Puma.copy
 
27
        $(MAKE) -C Puma/      compile
22
28
        $(MAKE) -C AspectC++/ SHARED=1 all
23
29
        $(MAKE) -C Ag++/      SHARED=1 all
 
30
        # ok, now we have both an ac++ binary and ag++ binary
 
31
        # now let's weave Puma again in the copy
 
32
        $(MAKE) -C Puma.copy clean
 
33
        $(MAKE) -C Puma.copy all AC=$(CURDIR)/AspectC++/bin/linux-release/ac++
 
34
        # let's clean and compile ac++ and ag++ again with new Puma
 
35
        $(MAKE) -C AspectC++ clean
 
36
        $(MAKE) -C Ag++      clean
 
37
        $(MAKE) -C AspectC++ SHARED=1 Puma=$(CURDIR)/Puma.copy all
 
38
        $(MAKE) -C Ag++      SHARED=1 Puma=$(CURDIR)/Puma.copy all
 
39
 
24
40
        # build manpages:
25
41
        docbook-to-man debian/ac++.1.sgml > ac++.1
26
42
        docbook-to-man debian/ag++.1.sgml > ag++.1
32
48
        dh_testroot
33
49
        rm -f build-stamp puma.config
34
50
        # cleaning up source directories:
35
 
        $(MAKE) -s -C Puma libclean tools-clean 
36
 
        # this was forgotten in libclean, will be fixed upstream in the next release
37
 
        rm -rf Puma/gen-release/step2/dep/*
 
51
        $(MAKE) -s -C Puma libclean
 
52
        $(MAKE) -s -C Puma tools-clean
 
53
        $(MAKE) -s -C Puma docs-clean
 
54
        $(MAKE) -s -C Puma examples-clean
38
55
        $(MAKE) -s -C AspectC++ clean
39
56
        $(MAKE) -s -C Ag++ clean
40
 
        # only leftover during testruns. will be fixed next upstream release
 
57
        # remove leftovers from Upstream Makefiles
41
58
        rm -rf AspectC++/tests/RepoVersion/repo.use
 
59
        rm -rf Ag++/DepFiles Ag++/ObjFiles Ag++/bin Ag++/tests/test_11.config
 
60
        rm -rf AspectC++/DepFiles AspectC++/ObjFiles AspectC++/bin
 
61
        rm -rf AspectC++/tests/*/feature.out
42
62
        # remove generated manpages:
43
63
        rm -f ac++.1 ag++.1
 
64
        rm -rf AspectC++/bin
 
65
        rm -rf Puma.copy/
44
66
        # standard cleaning:
45
 
        dh_clean 
46
 
 
47
 
install: build
48
 
        dh_testdir
49
 
        dh_testroot
50
 
        dh_clean -k 
 
67
        dh_clean
 
68
 
 
69
# Build architecture-independent files here.
 
70
binary-indep:
 
71
        dh_testdir
 
72
        dh_testroot
 
73
        dh_clean -k
 
74
        $(MAKE) -C Puma doxygen
 
75
        dh_installchangelogs
 
76
        dh_installdocs -p libpuma-doc Puma/doc/doxygen/html
 
77
        dh_installexamples -p libpuma-doc Puma/examples/cparser Puma/examples/ccparser Puma/examples/sync
 
78
        dh_compress
 
79
        dh_fixperms
 
80
        dh_installdeb -p libpuma-doc
 
81
        dh_gencontrol
 
82
        dh_md5sums
 
83
        dh_builddeb -p libpuma-doc
 
84
 
 
85
# Build architecture-dependent files here.
 
86
binary-arch: build
 
87
        dh_testdir
 
88
        dh_testroot
 
89
        dh_clean -k
51
90
        dh_installdirs
52
 
        dh_installchangelogs ChangeLog
 
91
        dh_installchangelogs
53
92
        dh_installdocs
54
93
        dh_install
 
94
        dh_installexamples -p aspectc++ AspectC++/examples/*
55
95
        dh_installman
56
 
        mkdir debian/aspectc++/usr/share/doc/aspectc++/examples
57
 
        cp -r AspectC++/examples/* debian/aspectc++/usr/share/doc/aspectc++/examples
58
 
 
59
 
# Build architecture-independent files here.
60
 
binary-indep: 
61
 
        # We have nothing to do
62
 
 
63
 
# Build architecture-dependent files here.
64
 
binary-arch: build install
65
 
        dh_testdir
66
 
        dh_testroot
67
96
        dh_link
68
97
        dh_strip
69
98
        dh_compress
70
99
        dh_fixperms
71
 
        dh_installdeb
 
100
        dh_installdeb -p aspectc++ -p libpuma-dev
72
101
        dh_shlibdeps
73
102
        dh_gencontrol
74
103
        dh_md5sums
75
 
        dh_builddeb
 
104
        dh_builddeb -p aspectc++ -p libpuma-dev
 
105
 
 
106
get-orig-source:
 
107
        dh_testdir
 
108
        chmod +x debian/cleanup-source.sh
 
109
        sh debian/get-orig-source.sh -d20080409 \
 
110
            -c $(CURDIR)/debian/cleanup-source.sh \
 
111
            -o ../aspectc++_1.0pre4~svn.20080409+dfsg.orig.tar.gz
76
112
 
77
113
binary: binary-indep binary-arch
78
 
.PHONY: build clean binary-indep binary-arch binary install clean-sources
 
114
.PHONY: build clean binary-indep binary-arch binary