UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / platforms / debian / packageinfo / rules
blobdec1261384634c9419b33017d274978517ee1dac
1 #!/usr/bin/make -f
2 #-*- makefile -*-
3 # Made with the aid of dh_make, by Craig Small
4 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5 # Some lines taken from debmake, by Christoph Lameter.
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
10 DESTDIR=`pwd`/debian/tmp
12 build: build-stamp
13 build-stamp:
14 dh_testdir
17 # Add here commands to compile the package.
18 -autoconf -l autoconf autoconf/configure.in >configure
19 SHUTDOWN=/sbin/shutdown CFLAGS="-O2 -g -Wall" ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-powerflute --enable-cgi --sysconfdir=/etc/apcupsd --with-cgi-bin=/usr/lib/cgi-bin/apcupsd --with-catgets --with-pid-dir=/var/run
20 $(MAKE)
22 touch build-stamp
24 clean:
25 dh_testdir
26 dh_testroot
27 rm -f build-stamp install-stamp
29 # Add here commands to clean up after the build process.
30 -$(MAKE) realclean
32 dh_clean
34 install: install-stamp
35 install-stamp: build-stamp
36 dh_testdir
37 dh_testroot
38 dh_clean -k
39 dh_installdirs
41 # Install the package into debian/tmp.
42 make prefix=`pwd`/debian/tmp/usr cgibin=`pwd`/debian/tmp/usr/lib/cgi-bin/apcupsd sysconfdir=`pwd`/debian/tmp/etc/apcupsd sbindir=`pwd`/debian/tmp/sbin mandir=`pwd`/debian/tmp/usr/share/man install
43 install -m 0644 -g root -o root debian/apcupsd.conf `pwd`/debian/tmp/etc/apcupsd
44 install -m 0755 -g root -o root debian/apccontrol `pwd`/debian/tmp/etc/apcupsd
46 touch install-stamp
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
54 dh_testdir
55 dh_testroot
56 dh_installdocs
57 dh_installexamples
58 dh_installmenu
59 dh_installlogrotate
60 dh_installinit
61 dh_installinit --init-script=ups-monitor
62 dh_installcron
63 dh_installmanpages
64 dh_undocumented
65 dh_installchangelogs ChangeLog
66 dh_link
67 dh_strip
68 dh_compress
69 dh_fixperms
70 dh_installdeb
71 dh_shlibdeps
72 dh_gencontrol
73 dh_md5sums
74 dh_builddeb
76 source diff:
77 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary