3 # Sample debian/rules that uses debhelper.
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.
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
13 # Uncomment this to turn on verbose mode.
16 # This has to be exported to make some magic below work.
21 build: build-arch build-indep
23 build-arch: build-arch-stamp
25 touch build-arch-stamp
27 build-indep: build-indep-stamp
30 touch build-indep-stamp
34 rm -f build-arch-stamp build-indep-stamp binary-common-stamp install-indep-stamp install-arch-stamp #CONFIGURE-STAMP#
39 install: install-indep-stamp
40 install-indep-stamp: install-indep
46 install -m 755 brestore/brestore.pl debian/brestore/usr/bin
47 install -m 644 brestore/brestore.glade debian/brestore/usr/share/brestore
48 install -m 644 brestore/brestore-fr.glade debian/brestore/usr/share/brestore
49 install -m 644 brestore/brestore.png debian/brestore/usr/share/brestore
51 install -m 644 bweb/lib/Bconsole.pm debian/bweb-common/usr/share/perl5
52 install -m 644 bweb/lib/CCircle.pm debian/bweb/usr/share/perl5
53 install -m 644 bweb/lib/Bweb.pm debian/bweb/usr/share/perl5
54 install -m 644 bweb/script/bweb.conf debian/bweb/etc/apache/conf.d
55 install -m 755 bweb/cgi/bgraph.pl debian/bweb/usr/lib/cgi-bin/bweb
56 install -m 755 bweb/cgi/bweb.pl debian/bweb/usr/lib/cgi-bin/bweb
57 install -m 755 bweb/cgi/bfileview.pl debian/bweb/usr/lib/cgi-bin/bweb
58 install -m 755 bweb/cgi/bconsole.pl debian/bweb/usr/lib/cgi-bin/bweb
59 install -m 644 bweb/tpl/*.tpl debian/bweb/usr/share/bweb/tpl
60 install -m 644 bweb/html/*.js debian/bweb/usr/share/bweb/html
61 install -m 644 bweb/html/*.css debian/bweb/usr/share/bweb/html
62 install -m 644 bweb/html/*.png debian/bweb/usr/share/bweb/html
63 install -m 644 bweb/html/*.gif debian/bweb/usr/share/bweb/html
64 install -m 644 bweb/script/bweb-postgresql.sql debian/bweb/usr/share/bweb
66 touch install-indep-stamp
68 install-arch: install-arch-stamp
72 # dh_clean -pbrestore -k -s
73 # dh_clean -pbweb -k -s
75 touch install-arch-stamp
77 binary: build install binary-common
78 # Must not depend on anything. This is to be called by
79 # binary-arch/binary-indep
80 # in another 'make' thread.
81 binary-common: binary-common-stamp
88 dh_installmenu -psched-builder
110 touch binary-common-stamp
112 # Build architecture independant packages using the common target.
113 binary-indep: build-indep install-indep-stamp
114 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
116 # Build architecture dependant packages using the common target.
117 binary-arch: build-arch install-arch
118 $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
120 binary: binary-arch binary-indep
121 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure