~ubuntu-branches/ubuntu/feisty/aspectc++/feisty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2005-12-23 10:49:40 UTC
  • Revision ID: james.westby@ubuntu.com-20051223104940-xed62wm99q11i6d6
Tags: 0.99+1.0pre2-1
* New upstream release. (Closes: #277538)
* Upload sponsored by Norbert Tretkowski <nobse@debian.org>.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
#export DH_VERBOSE=1
 
5
 
 
6
PACKAGE = aspectc++
 
7
 
 
8
CFLAGS = -Wall -g
 
9
 
 
10
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
11
        CFLAGS += -O0
 
12
else
 
13
        CFLAGS += -O2
 
14
endif
 
15
 
 
16
build: build-stamp
 
17
build-stamp:
 
18
        dh_testdir
 
19
        # Add here commands to compile the package.
 
20
        $(MAKE) -C Puma/ compile
 
21
        $(MAKE) -C AspectC++/ SHARED=1 all test
 
22
        $(MAKE) -C Ag++/      SHARED=1 all test
 
23
        # build manpages:
 
24
        docbook-to-man debian/ac++.1.sgml > ac++.1
 
25
        docbook-to-man debian/ag++.1.sgml > ag++.1
 
26
        # mark timestamp
 
27
        touch build-stamp
 
28
 
 
29
clean:
 
30
        dh_testdir
 
31
        dh_testroot
 
32
        rm -f build-stamp
 
33
        # cleaning up source directories:
 
34
        $(MAKE) -C Puma libclean tools-clean examples-clean
 
35
        # this was forgotten in libclean:
 
36
        rm -rf Puma/gen-release/step2/dep/*
 
37
        $(MAKE) -C AspectC++ clean
 
38
        $(MAKE) -C Ag++ clean
 
39
        # only leftover during testruns. will be fixed next upstream release
 
40
        rm -rf AspectC++/tests/RepoVersion/repo.use
 
41
        # remove generated manpages:
 
42
        rm -f ac++.1 ag++.1
 
43
        # standard cleaning:
 
44
        dh_clean 
 
45
 
 
46
install: build
 
47
        dh_testdir
 
48
        dh_testroot
 
49
        dh_clean -k 
 
50
        dh_installdirs
 
51
        dh_installchangelogs ChangeLog
 
52
        dh_installdocs
 
53
        dh_install
 
54
        dh_installman
 
55
 
 
56
# Build architecture-independent files here.
 
57
binary-indep: 
 
58
        # We have nothing to do
 
59
 
 
60
# Build architecture-dependent files here.
 
61
binary-arch: build install
 
62
        dh_testdir
 
63
        dh_testroot
 
64
        dh_link
 
65
        dh_strip
 
66
        dh_compress
 
67
        dh_fixperms
 
68
        dh_installdeb
 
69
        dh_shlibdeps
 
70
        dh_gencontrol
 
71
        dh_md5sums
 
72
        dh_builddeb
 
73
 
 
74
binary: binary-indep binary-arch
 
75
.PHONY: build clean binary-indep binary-arch binary install clean-sources