#!/usr/bin/make -f # $HeadURL$ $LastChangedRevision$ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 configure: configure-stamp configure-stamp: dh_testdir @# Configure to install under / $(MAKE) \ ADECONF_FLAGS="\ --prefix=/ \ --bindir=/usr/bin \ --cfgdir=/etc \ --docdir=/usr/share/doc/rsdeb \ --incdir=/usr/include/rsdeb \ --lckdir=/var/run \ --libdir=/usr/lib/rsdeb \ --libdir=/var/log \ --mandir=/usr/share/man \ --sttdir=/var/lib/rsdeb \ " configure touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) \ PERL_CMD=/usr/bin/perl \ SHELL_CMD=/bin/bash $(MAKE) tests touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp $(MAKE) clean distclean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs @# Actually install under $(CURDIR) $(MAKE) \ DIR=$(CURDIR)/debian/rsdeb \ BINDIR=$(CURDIR)/debian/rsdeb/usr/bin \ CFGDIR=$(CURDIR)/debian/rsdeb/etc \ DOCDIR=$(CURDIR)/debian/rsdeb/usr/share/doc/rsdeb \ INCDIR=$(CURDIR)/debian/rsdeb/usr/include/rsdeb \ LCKDIR=$(CURDIR)/debian/rsdeb/var/run \ LIBDIR=$(CURDIR)/debian/rsdeb/usr/lib/rsdeb \ LOGDIR=$(CURDIR)/debian/rsdeb/var/log \ MANDIR=$(CURDIR)/debian/rsdeb/usr/share/man \ STTDIR=$(CURDIR)/debian/rsdeb/var/lib/rsdeb \ install @# 'COPYING' should not be installed; according to 'lintian' @# all copyright info should be collected in the 'copyright' @# file, and standard licenses should be referenced, but not @# actually included, and 'COPYING' is such a license. rm -f $(CURDIR)/debian/rsdeb/usr/share/doc/rsdeb/COPYING @# According to 'lintian -i', Debian policy says that @# 'ChangeLog' should be called 'changelog'. It also says @# that it should be compressed, but that happens @# automatically. mv $(CURDIR)/debian/rsdeb/usr/share/doc/rsdeb/ChangeLog $(CURDIR)/debian/rsdeb/usr/share/doc/rsdeb/changelog @# Remove the examples installed by the Makefile and install @# them instead using dh. rm -fr $(CURDIR)/debian/rsdeb/usr/share/doc/rsdeb/examples @# 'rsdeb.conf' is only distributed as an example in the @# sources. Now we use that as the actual config file. install -d $(CURDIR)/debian/rsdeb/etc/ install -m 644 doc/examples/rsdeb.conf $(CURDIR)/debian/rsdeb/etc/rsdeb.conf # Build architecture-dependent files here. binary-indep: build install echo "doing binary-indep ..." dh_testdir dh_testroot dh_installchangelogs dh_installdocs doc/README.1ST doc/TODO dh_installexamples doc/examples/rsdeb.conf # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link # dh_strip dh_compress dh_fixperms # dh_perl # dh_python # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep .PHONY: build clean binary-indep binary install configure