~ubuntu-branches/ubuntu/breezy/joystick/breezy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Edward Betts
  • Date: 2001-12-26 13:32:55 UTC
  • Revision ID: james.westby@ubuntu.com-20011226133255-ks0knlw3ln1jd4d4
Tags: 20010903-2
* debian/control: updated Standards-Version.
* debian/control: added version number to debhelper Build-Depends.
* debian/copyright: improved with more text from the GPL and a description
  of changes to the package.
* debian/template: German translation from Sebastian Feltel
  <sebastian@feltel.de>. (Closes: Bug#119939)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# debian/rules for joystick 
 
3
# modifications by Edward Betts <edward@debian.org>
 
4
# Based on:
 
5
# Sample debian/rules that uses debhelper.
 
6
# GNU copyright 1997 to 1999 by Joey Hess.
 
7
 
 
8
# Uncomment this to turn on verbose mode.
 
9
#export DH_VERBOSE=1
 
10
 
 
11
# This is the debhelper compatability version to use.
 
12
export DH_COMPAT=3
 
13
 
 
14
CFLAGS = -O2 -Wall #-pipe
 
15
ifeq "$(findstring debug,$(DEB_BUILD_OPTIONS))" "debug"
 
16
        CFLAGS += -g
 
17
endif
 
18
 
 
19
build: build-stamp
 
20
build-stamp:
 
21
        dh_testdir
 
22
 
 
23
        (cd utils && $(MAKE) CFLAGS=$(CFLAGS) CPPFLAGS="-I../linux/include" \
 
24
                jstest jscal inputattach)
 
25
 
 
26
        touch build-stamp
 
27
 
 
28
clean:
 
29
        dh_testdir
 
30
        dh_testroot
 
31
        rm -f build-stamp
 
32
 
 
33
        -(cd utils && $(MAKE) clean)
 
34
 
 
35
        dh_clean
 
36
 
 
37
install: build
 
38
        dh_testdir
 
39
        dh_testroot
 
40
        dh_clean -k
 
41
        dh_installdirs
 
42
 
 
43
        install -o root -g root -m 755 `pwd`/utils/{jstest,jscal,inputattach} \
 
44
                `pwd`/debian/joystick/usr/bin
 
45
        install -o root -g root -m 755 `pwd`/debian/joystick-device-check \
 
46
                `pwd`/debian/joystick/usr/sbin
 
47
 
 
48
# Build architecture-independent files here.
 
49
binary-indep: build install
 
50
# We have nothing to do by default.
 
51
 
 
52
# Build architecture-dependent files here.
 
53
binary-arch: build install
 
54
        dh_testdir
 
55
        dh_testroot
 
56
        dh_installdebconf
 
57
        dh_installdocs linux/Documentation/*
 
58
        dh_installexamples
 
59
        dh_installmenu
 
60
#       dh_installemacsen
 
61
#       dh_installpam
 
62
#       dh_installmime
 
63
        dh_installinit -n # scripts handled manual because of debconf
 
64
        dh_installcron
 
65
        dh_installman debian/jstest.1 debian/jscal.1 debian/inputattach.1 debian/joystick-device-check.8
 
66
        dh_installinfo
 
67
#       dh_undocumented
 
68
        dh_installchangelogs
 
69
        dh_link
 
70
        dh_strip
 
71
        dh_compress
 
72
        dh_fixperms
 
73
#       dh_makeshlibs
 
74
        dh_installdeb
 
75
#       dh_perl
 
76
        dh_shlibdeps
 
77
        dh_gencontrol
 
78
        dh_md5sums
 
79
        dh_builddeb
 
80
 
 
81
binary: binary-indep binary-arch
 
82
.PHONY: build clean binary-indep binary-arch binary install