~ubuntu-branches/ubuntu/lucid/mu-cade/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Miriam Ruiz
  • Date: 2007-08-25 19:58:40 UTC
  • Revision ID: james.westby@ubuntu.com-20070825195840-rdkm22cpw8ov0vl4
Tags: 0.11.dfsg1-1
Initial release (Closes: #439685)

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
CFLAGS = -Wall -g
 
7
 
 
8
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
9
        CFLAGS += -O0
 
10
        DFLAGS = -g -debug -d
 
11
else
 
12
        CFLAGS += -O2
 
13
        DFLAGS = -O -release -d
 
14
endif
 
15
 
 
16
configure: configure-stamp
 
17
configure-stamp:
 
18
        dh_testdir
 
19
        #ant -v
 
20
        $(MAKE) -f /usr/share/quilt/quilt.make patch
 
21
        touch $@
 
22
 
 
23
build: build-stamp
 
24
build-stamp: configure-stamp 
 
25
        dh_testdir
 
26
        $(MAKE) CFLAGS="$(CFLAGS)" DFLAGS="$(DFLAGS)"
 
27
        touch $@
 
28
 
 
29
clean:
 
30
        dh_testdir
 
31
        dh_testroot
 
32
        rm -f build-stamp configure-stamp
 
33
        #ant -v clean
 
34
        [ ! -f Makefile ] || $(MAKE) clean
 
35
        rm -f mu-cade
 
36
        rm -f `find . -name "*.o"`
 
37
        $(MAKE) -f /usr/share/quilt/quilt.make unpatch
 
38
        dh_clean 
 
39
 
 
40
install: build
 
41
        dh_testdir
 
42
        dh_testroot
 
43
        dh_clean -k 
 
44
        dh_installdirs
 
45
 
 
46
# Build architecture-independent files here.
 
47
binary-indep: build install
 
48
 
 
49
# Build architecture-dependent files here.
 
50
binary-arch: build install
 
51
        dh_testdir
 
52
        dh_testroot
 
53
        dh_installchangelogs 
 
54
        dh_installdocs
 
55
        dh_installexamples
 
56
        dh_install
 
57
        dh_installmenu
 
58
        dh_installman debian/*.6
 
59
        dh_link
 
60
        dh_strip
 
61
        dh_compress
 
62
        dh_fixperms
 
63
        dh_installdeb
 
64
        dh_shlibdeps
 
65
        dh_gencontrol
 
66
        dh_md5sums
 
67
        dh_builddeb
 
68
 
 
69
get-orig-source:
 
70
        dh_testdir
 
71
        dh_testroot
 
72
        wget http://www.asahi-net.or.jp/~cs8k-cyu/windows/mcd0_11.zip
 
73
        unzip mcd0_11.zip
 
74
        rm mcd/*.dll
 
75
        rm mcd/*.exe
 
76
        rm mcd/lib/*.lib
 
77
        rm mcd/resource/*.RES
 
78
        tar cvfz ../mu-cade_0.11.dfsg1.orig.tar.gz mcd
 
79
        rm -rf mcd0_11.zip mcd
 
80
 
 
81
binary: binary-indep binary-arch
 
82
.PHONY: build clean binary-indep binary-arch binary install configure get-orig-source