#!/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) \ ADEROOT_INCLUDE=`pwd`/include \ ADEROOT_BIN=`pwd`/bin \ ADEROOT_LIB=`pwd`/lib \ ADECONF_FLAGS="\ --prefix=/ \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --cfgdir=/etc \ --docdir=/usr/share/doc/ade \ --incdir=/usr/include/ade \ --lckdir=/var/run \ --libdir=/usr/lib/ade \ --logdir=/var/log \ --mandir=/usr/share/man \ --sttdir=/var/lib/ade \ " configure touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) \ ADEROOT_INCLUDE=`pwd`/include \ ADEROOT_BIN=`pwd`/bin \ ADEROOT_LIB=`pwd`/lib \ PERL_CMD=/usr/bin/perl \ SHELL_CMD=/bin/bash $(MAKE) \ ADEROOT_INCLUDE=`pwd`/include \ ADEROOT_BIN=`pwd`/bin \ ADEROOT_LIB=`pwd`/lib \ tests touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp $(MAKE) \ ADEROOT_INCLUDE=`pwd`/include \ ADEROOT_BIN=`pwd`/bin \ ADEROOT_LIB=`pwd`/lib \ clean distclean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs @# Actually install under $(CURDIR) $(MAKE) \ ADEROOT_INCLUDE=`pwd`/include \ ADEROOT_BIN=`pwd`/bin \ ADEROOT_LIB=`pwd`/lib \ DIR=$(CURDIR)/debian/ade \ BINDIR=$(CURDIR)/debian/ade/usr/bin \ SBINDIR=$(CURDIR)/debian/ade/usr/sbin \ CFGDIR=$(CURDIR)/debian/ade/etc \ DOCDIR=$(CURDIR)/debian/ade/usr/share/doc/ade \ INCDIR=$(CURDIR)/debian/ade/usr/include/ade \ LCKDIR=$(CURDIR)/debian/ade/var/run \ LIBDIR=$(CURDIR)/debian/ade/usr/lib/ade \ LOGDIR=$(CURDIR)/debian/ade/var/log \ MANDIR=$(CURDIR)/debian/ade/usr/share/man \ STTDIR=$(CURDIR)/debian/ade/var/lib/ade \ 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/ade/usr/share/doc/ade/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/ade/usr/share/doc/ade/ChangeLog $(CURDIR)/debian/ade/usr/share/doc/ade/changelog @# Make the lintian overrides file. rm -f $(CURDIR)/debian/ade/usr/share/lintian/overrides/ade mkdir -p $(CURDIR)/debian/ade/usr/share/lintian/overrides { \ echo "ade: extra-license-file usr/lib/ade/template_modules/lxshell/trunk/doc/COPYING"; \ echo "ade: interpreter-not-absolute ./usr/lib/ade/template_modules/lxperl/trunk/bin/lxperl.pl.spp #!SPPSYM_PERL_CMD"; \ echo "ade: script-not-executable ./usr/lib/ade/template_modules/lxperl/trunk/bin/lxperl.pl.spp"; \ echo "ade: unusual-interpreter ./usr/lib/ade/template_modules/lxperl/trunk/bin/lxperl.pl.spp #!SPPSYM_PERL_CMD"; \ echo "ade: script-not-executable ./usr/lib/ade/template_modules/lxperl/trunk/tests/bin/dumb_test.sh"; \ echo "ade: interpreter-not-absolute ./usr/lib/ade/template_modules/lxshell/trunk/bin/lxshell.sh.spp #!SPPSYM_SHELL_CMD"; \ echo "ade: script-not-executable ./usr/lib/ade/template_modules/lxshell/trunk/bin/lxshell.sh.spp"; \ echo "ade: unusual-interpreter ./usr/lib/ade/template_modules/lxshell/trunk/bin/lxshell.sh.spp #!SPPSYM_SHELL_CMD"; \ echo "ade: extra-license-file usr/lib/ade/template_modules/lxperl/trunk/doc/COPYING"; \ echo "ade: script-not-executable ./usr/lib/ade/template_modules/lxshell/trunk/tests/bin/dumb_test.sh"; \ echo "ade: script-not-executable ./usr/lib/ade/template_modules/lxshellsmall/trunk/lxshellsmall"; \ echo "ade: description-synopsis-starts-with-a-capital-letter"; \ } >> $(CURDIR)/debian/ade/usr/share/lintian/overrides/ade base-config: debconf-is-not-a-registry ./usr/lib/base-config/show-menu # 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 # 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