2
# debian/rules for joystick
3
# modifications by Edward Betts <edward@debian.org>
5
# Sample debian/rules that uses debhelper.
6
# GNU copyright 1997 to 1999 by Joey Hess.
8
# Uncomment this to turn on verbose mode.
11
# This is the debhelper compatability version to use.
14
CFLAGS = -O2 -Wall #-pipe
15
ifeq "$(findstring debug,$(DEB_BUILD_OPTIONS))" "debug"
23
(cd utils && $(MAKE) CFLAGS=$(CFLAGS) CPPFLAGS="-I../linux/include" \
24
jstest jscal inputattach)
33
-(cd utils && $(MAKE) clean)
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
48
# Build architecture-independent files here.
49
binary-indep: build install
50
# We have nothing to do by default.
52
# Build architecture-dependent files here.
53
binary-arch: build install
57
dh_installdocs linux/Documentation/*
63
dh_installinit -n # scripts handled manual because of debconf
65
dh_installman debian/jstest.1 debian/jscal.1 debian/inputattach.1 debian/joystick-device-check.8
81
binary: binary-indep binary-arch
82
.PHONY: build clean binary-indep binary-arch binary install