2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
5 # Uncomment this to turn on verbose mode.
9 include /usr
/share
/dpatch
/dpatch.make
12 CFLAGS
= -fsigned-char
-Wall
13 ifneq (,$(findstring noopt
,$(DEB_BUILD_OPTIONS
)))
18 ifeq (,$(findstring nostrip
,$(DEB_BUILD_OPTIONS
)))
19 INSTALL_PROGRAM
= install -s
21 INSTALL_PROGRAM
= install
25 configure
: configure-stamp
26 configure-stamp
: patch-stamp
29 CFLAGS
="${CFLAGS}" .
/configure
--prefix=/usr \
31 --mandir=/usr
/share
/man \
32 --with-initscriptdir
=/etc
/init.d \
33 --with-docdir
=/usr
/share
/doc
/smartmontools
39 build-stamp
: configure-stamp
42 # Add here commands to compile the package.
45 #/usr/bin/docbook-to-man debian/smartmontools.sgml > smartmontools.1
52 # rm -f debian/logcheck.logcheck.ignore.*
54 # Add here commands to clean up after the build process.
56 rm -f build-stamp configure-stamp \
57 Makefile.in examplescripts
/Makfile.in aclocal.m4 configure
68 $(MAKE
) DESTDIR
=$(CURDIR
)/debian
/smartmontools \
69 INSTALL_PROGRAM
="${INSTALL_PROGRAM}" install-sbinPROGRAMS
70 $(MAKE
) DESTDIR
=$(CURDIR
)/debian
/smartmontools \
72 $(MAKE
) DESTDIR
=$(CURDIR
)/debian
/smartmontools \
74 $(MAKE
) DESTDIR
=$(CURDIR
)/debian
/smartmontools \
75 examplesdir
='$$(docdir)/examples' \
76 -C examplescripts
/ install-examplesSCRIPTS install-examplesDATA
78 install -D
-m
755 debian
/smartmontools-bug \
79 $(CURDIR
)/debian
/smartmontools
/usr
/share
/bug
/smartmontools
80 install -D
-m
755 debian
/smartd-runner \
81 $(CURDIR
)/debian
/smartmontools
/usr
/share
/smartmontools
/smartd-runner
82 install -D
-m
755 debian
/10mail \
83 $(CURDIR
)/debian
/smartmontools
/etc
/smartmontools
/run.d
/10mail
84 # for T in paranoid server workstation; do \
85 # cp debian/smartmontools.logcheck.ignore \
86 # debian/logcheck.logcheck.ignore.$${T}; \
89 # Build architecture-independent files here.
90 binary-indep
: build
install
91 # We have nothing to do by default.
93 # Build architecture-dependent files here.
94 binary-arch
: build
install
101 # dh_installlogrotate
111 dh_installchangelogs CHANGELOG
124 binary
: binary-indep binary-arch
125 .PHONY
: build
clean binary-indep binary-arch binary
install configure