Debianization
[udpcat.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 #
5 # This file was originally written by Joey Hess and Craig Small.
6 # As a special exception, when this file is copied by dh-make into a
7 # dh-make output file, you may use that output file without restriction.
8 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 #
10 # Modified to make a template file for a multi-binary package with separated
11 # build-arch and build-indep targets  by Bill Allombert 2001
12
13 # Uncomment this to turn on verbose mode.
14 #export DH_VERBOSE=1
15
16 # This has to be exported to make some magic below work.
17 export DH_OPTIONS
18
19 CONCURRENCY_LEVEL ?= 1
20 export CONCURRENCY_LEVEL
21
22 destdir=$(CURDIR)/debian/tmp
23
24 configure: configure-stamp
25 configure-stamp:
26         dh_testdir
27         touch configure-stamp
28
29 build: build-stamp
30 build-stamp: configure-stamp
31 #       Add here commands to compile the arch part of the package.
32         scons -j $(CONCURRENCY_LEVEL)
33         touch $@
34
35 clean: debclean
36 #       Add here commands to clean up after the build process.
37         -scons -c all
38
39 debclean:
40         dh_testdir
41         dh_testroot
42         rm -f build-stamp configure-stamp
43         dh_clean
44
45 install: build
46         dh_testdir
47         dh_testroot
48         dh_clean -k -s -Xdebian/tmp
49         dh_installdirs -s
50 #       Add here commands to install the arch part of the package into 
51 #       debian/tmp.
52         dh_install -X.svn -X.git -s
53
54 binary: build install
55         dh_testdir
56         dh_testroot
57         dh_installchangelogs
58         dh_installdocs
59         dh_installexamples
60 #       dh_installmenu
61 #       dh_installdebconf       
62 #       dh_installlogrotate     
63 #       dh_installemacsen
64 #       dh_installpam
65 #       dh_installmime
66 #       dh_python
67 #       dh_installinit
68 #       dh_installcron
69 #       dh_installinfo
70         dh_installman
71         dh_link
72         dh_strip
73         dh_compress -Xhtml -Xdoclib -Xexamples
74         dh_fixperms
75 #       dh_perl
76         dh_makeshlibs
77         dh_installdeb
78         dh_shlibdeps
79         dh_gencontrol
80         dh_md5sums
81         dh_builddeb
82
83 .PHONY: configure build clean debclean install binary