~ubuntu-branches/ubuntu/warty/tap-plugins/warty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Anand Kumria
  • Date: 2004-02-16 01:38:56 UTC
  • Revision ID: james.westby@ubuntu.com-20040216013856-aiw4160ilh02j3hl
Tags: 0.3.0-2
* Correct doc-base to point to right file (closes: #232686)
* Provide virtual package 'ladspa-plugin' so we get recommended
  by more hosts

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# GNU copyright 1997 to 1999 by Joey Hess.
 
5
 
 
6
# Uncomment this to turn on verbose mode.
 
7
#export DH_VERBOSE=1
 
8
 
 
9
# These are used for cross-compiling and for saving the configure script
 
10
# # from having to guess our platform (since we know it already)
 
11
# DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
12
# DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
13
 
 
14
CFLAGS = -Wall -g
 
15
 
 
16
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
17
        CFLAGS += -O0
 
18
else
 
19
        CFLAGS += -O2
 
20
endif
 
21
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
22
        INSTALL_PROGRAM += -s
 
23
endif
 
24
 
 
25
configure: configure-stamp
 
26
configure-stamp:
 
27
        dh_testdir
 
28
        # Add here commands to configure the package.
 
29
 
 
30
        touch configure-stamp
 
31
 
 
32
 
 
33
build: build-stamp
 
34
 
 
35
build-stamp: configure-stamp 
 
36
        dh_testdir
 
37
 
 
38
        # Add here commands to compile the package.
 
39
        $(MAKE) 
 
40
        #/usr/bin/docbook-to-man debian/tap-0.1.sgml > tap-0.1.1
 
41
 
 
42
        touch build-stamp
 
43
 
 
44
clean:
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        rm -f build-stamp configure-stamp
 
48
 
 
49
        # Add here commands to clean up after the build process.
 
50
        -$(MAKE) clean
 
51
 
 
52
        dh_clean 
 
53
 
 
54
install: build
 
55
        dh_testdir
 
56
        dh_testroot
 
57
        dh_clean -k 
 
58
        dh_installdirs
 
59
 
 
60
        # Add here commands to install the package into debian/tap-0.1.
 
61
        $(MAKE) install INSTALL_PLUGINS_DIR=$(CURDIR)/debian/tap-plugins/usr/lib/ladspa INSTALL_LRDF_DIR=$(CURDIR)/debian/tap-plugins/usr/share/ladspa/rdf
 
62
        cp doc/* $(CURDIR)/debian/tap-plugins/usr/share/doc/tap-plugins/html/
 
63
 
 
64
# Build architecture-independent files here.
 
65
binary-indep: build install
 
66
# We have nothing to do by default.
 
67
 
 
68
# Build architecture-dependent files here.
 
69
binary-arch: build install
 
70
        dh_testdir
 
71
        dh_testroot
 
72
        dh_installchangelogs 
 
73
        dh_installdocs
 
74
        dh_installexamples
 
75
#       dh_install
 
76
#       dh_installmenu
 
77
#       dh_installdebconf       
 
78
#       dh_installlogrotate
 
79
#       dh_installemacsen
 
80
#       dh_installpam
 
81
#       dh_installmime
 
82
#       dh_installinit
 
83
#       dh_installcron
 
84
#       dh_installinfo
 
85
        dh_installman
 
86
        dh_link
 
87
        dh_strip
 
88
        dh_compress
 
89
        dh_fixperms
 
90
#       dh_perl
 
91
#       dh_python
 
92
#       dh_makeshlibs
 
93
        dh_installdeb
 
94
        dh_shlibdeps
 
95
        dh_gencontrol
 
96
        dh_md5sums
 
97
        dh_builddeb
 
98
 
 
99
binary: binary-indep binary-arch
 
100
.PHONY: build clean binary-indep binary-arch binary install configure