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 build-stamp configure.stamp
53 # rm -f debian/logcheck.logcheck.ignore.*
55 # Add here commands to clean up after the build process.
66 $(MAKE
) DESTDIR
=$(CURDIR
)/debian
/smartmontools \
67 INSTALL_PROGRAM
="${INSTALL_PROGRAM}" install-sbinPROGRAMS
68 $(MAKE
) DESTDIR
=$(CURDIR
)/debian
/smartmontools \
70 $(MAKE
) DESTDIR
=$(CURDIR
)/debian
/smartmontools \
72 $(MAKE
) DESTDIR
=$(CURDIR
)/debian
/smartmontools \
73 examplesdir
='$$(docdir)/examples' \
74 -C examplescripts
/ install-examplesSCRIPTS install-examplesDATA
76 install -D
-m
755 debian
/smartmontools-bug \
77 $(CURDIR
)/debian
/smartmontools
/usr
/share
/bug
/smartmontools
78 install -D
-m
755 debian
/smartd-runner \
79 $(CURDIR
)/debian
/smartmontools
/usr
/share
/smartmontools
/smartd-runner
80 install -D
-m
755 debian
/10mail \
81 $(CURDIR
)/debian
/smartmontools
/etc
/smartmontools
/run.d
/10mail
82 # for T in paranoid server workstation; do \
83 # cp debian/smartmontools.logcheck.ignore \
84 # debian/logcheck.logcheck.ignore.$${T}; \
87 # Build architecture-independent files here.
88 binary-indep
: build
install
89 # We have nothing to do by default.
91 # Build architecture-dependent files here.
92 binary-arch
: build
install
109 dh_installchangelogs CHANGELOG
122 binary
: binary-indep binary-arch
123 .PHONY
: build
clean binary-indep binary-arch binary
install configure