~mez/prevu/prevu

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Martin Meredith
  • Date: 2006-11-05 06:16:28 UTC
  • Revision ID: mez@ubuntu.com-20061105061628-590cb723a95b92ce
moving debian folder to seperate package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/make -f
2
 
 
3
 
CFLAGS = -Wall -g
4
 
 
5
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
6
 
        CFLAGS += -O0
7
 
else
8
 
        CFLAGS += -O2
9
 
endif
10
 
 
11
 
configure: configure-stamp
12
 
configure-stamp:
13
 
        dh_testdir
14
 
 
15
 
        touch configure-stamp
16
 
 
17
 
 
18
 
build: build-stamp
19
 
 
20
 
build-stamp: configure-stamp 
21
 
        dh_testdir
22
 
 
23
 
        $(MAKE)
24
 
 
25
 
        touch $@
26
 
 
27
 
clean:
28
 
        dh_testdir
29
 
        dh_testroot
30
 
        rm -f build-stamp configure-stamp
31
 
 
32
 
        -$(MAKE) clean
33
 
 
34
 
        dh_clean 
35
 
 
36
 
install: build
37
 
        dh_testdir
38
 
        dh_testroot
39
 
        dh_clean -k 
40
 
        dh_installdirs
41
 
 
42
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/prevu
43
 
 
44
 
 
45
 
# Build architecture-independent files here.
46
 
binary-indep: build install
47
 
        dh_testdir
48
 
        dh_testroot
49
 
        dh_installchangelogs 
50
 
        dh_installdocs
51
 
        dh_installexamples
52
 
        dh_installman
53
 
        dh_link
54
 
        dh_strip
55
 
        dh_compress
56
 
        dh_fixperms
57
 
        dh_installdeb
58
 
        dh_shlibdeps
59
 
        dh_gencontrol
60
 
        dh_md5sums
61
 
        dh_builddeb
62
 
        
63
 
# Build architecture-dependent files here.
64
 
binary-arch: build install
65
 
 
66
 
binary: binary-indep binary-arch
67
 
.PHONY: build clean binary-indep binary-arch binary install configure