~wizardpen-devs/wizardpen/debian-packing

« back to all changes in this revision

Viewing changes to rules

  • Committer: Martin Owens (DoctorMO)
  • Date: 2009-06-24 19:49:00 UTC
  • Revision ID: doctormo@gmail.com-20090624194900-ytmzdbq63eyteuwf
Initial import of deb packaging for Wizardpen

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
# This file was originally written by Joey Hess and Craig Small.
 
5
# As a special exception, when this file is copied by dh-make into a
 
6
# dh-make output file, you may use that output file without restriction.
 
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
8
 
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
11
 
 
12
 
 
13
# These are used for cross-compiling and for saving the configure script
 
14
# from having to guess our platform (since we know it already)
 
15
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
16
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
17
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
 
18
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
 
19
else
 
20
CROSS= --build $(DEB_BUILD_GNU_TYPE)
 
21
endif
 
22
 
 
23
 
 
24
 
 
25
config.status: configure
 
26
        dh_testdir
 
27
        # Add here commands to configure the package.
 
28
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
 
29
        cp -f /usr/share/misc/config.sub config.sub
 
30
endif
 
31
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 
32
        cp -f /usr/share/misc/config.guess config.guess
 
33
endif
 
34
        ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)"
 
35
 
 
36
 
 
37
build: build-stamp
 
38
 
 
39
build-stamp:  config.status 
 
40
        dh_testdir
 
41
 
 
42
        # Add here commands to compile the package.
 
43
        $(MAKE)
 
44
        #docbook-to-man debian/wizardpen.sgml > wizardpen.1
 
45
 
 
46
        touch $@
 
47
 
 
48
clean: 
 
49
        dh_testdir
 
50
        dh_testroot
 
51
        rm -f build-stamp 
 
52
 
 
53
        # Add here commands to clean up after the build process.
 
54
        [ ! -f Makefile ] || $(MAKE) distclean
 
55
        rm -f config.sub config.guess
 
56
 
 
57
        dh_clean 
 
58
 
 
59
install: build
 
60
        dh_testdir
 
61
        dh_testroot
 
62
        dh_clean -k 
 
63
        dh_installdirs
 
64
        dh_install debian/10-wizardpen-devices.fdi debian/11-wizardpen-config.fdi usr/share/hal/fdi/preprobe/10osvendor/
 
65
        dh_install calibrate/wizardpen-calibrate usr/bin/
 
66
        # Add here commands to install the package into debian/wizardpen.
 
67
        $(MAKE) DESTDIR=$(CURDIR)/debian/wizardpen install
 
68
 
 
69
# Build architecture-independent files here.
 
70
binary-indep: build install
 
71
# We have nothing to do by default.
 
72
 
 
73
# Build architecture-dependent files here.
 
74
binary-arch: build install
 
75
        dh_testdir
 
76
        dh_testroot
 
77
        dh_installchangelogs 
 
78
        dh_installdocs
 
79
        dh_installexamples
 
80
        dh_install
 
81
#       dh_installmenu
 
82
#       dh_installdebconf       
 
83
#       dh_installlogrotate
 
84
#       dh_installemacsen
 
85
#       dh_installpam
 
86
#       dh_installmime
 
87
#       dh_python
 
88
#       dh_installinit
 
89
#       dh_installcron
 
90
#       dh_installinfo
 
91
        dh_installman
 
92
        dh_link
 
93
        dh_strip
 
94
        dh_compress
 
95
        dh_fixperms
 
96
#       dh_perl
 
97
#       dh_makeshlibs
 
98
        dh_installdeb
 
99
        dh_shlibdeps
 
100
        dh_gencontrol
 
101
        dh_md5sums
 
102
        dh_builddeb
 
103
 
 
104
binary: binary-indep binary-arch
 
105
.PHONY: build clean binary-indep binary-arch binary install