10
PUMA_CONFIG=$(PWD)/puma.config
8
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
11
CFLAGS := -Wall -O2 -g
14
PUMA_CONFIG=$(CURDIR)/puma.config
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
18
22
build: build-stamp test-builds
21
$(MAKE) -C Puma/ compile
25
# save a copy of Puma that will be woven later
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
37
$(MAKE) -C AspectC++ SHARED=1 Puma=$(CURDIR)/Puma.copy all
38
$(MAKE) -C Ag++ SHARED=1 Puma=$(CURDIR)/Puma.copy all
25
41
docbook-to-man debian/ac++.1.sgml > ac++.1
26
42
docbook-to-man debian/ag++.1.sgml > ag++.1
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
44
66
# standard cleaning:
69
# Build architecture-independent files here.
74
$(MAKE) -C Puma doxygen
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
80
dh_installdeb -p libpuma-doc
83
dh_builddeb -p libpuma-doc
85
# Build architecture-dependent files here.
52
dh_installchangelogs ChangeLog
94
dh_installexamples -p aspectc++ AspectC++/examples/*
56
mkdir debian/aspectc++/usr/share/doc/aspectc++/examples
57
cp -r AspectC++/examples/* debian/aspectc++/usr/share/doc/aspectc++/examples
59
# Build architecture-independent files here.
61
# We have nothing to do
63
# Build architecture-dependent files here.
64
binary-arch: build install
100
dh_installdeb -p aspectc++ -p libpuma-dev
104
dh_builddeb -p aspectc++ -p libpuma-dev
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
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