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
/quilt
/quilt.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
: debian
/stamp-patched
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
/Makefile.in aclocal.m4 configure
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
83 # Build architecture-independent files here.
85 # We have nothing to do by default.
87 # Build architecture-dependent files here.
88 binary-arch
: build
install
105 dh_installchangelogs CHANGELOG
118 binary
: binary-indep binary-arch
119 .PHONY
: build
clean binary-indep binary-arch binary
install configure