Rev 6 | Rev 21 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/usr/bin/make -f# Sample debian/rules that uses debhelper.# GNU copyright 1997 to 1999 by Joey Hess.# Uncomment this to turn on verbose mode.#export DH_VERBOSE=1CFLAGS = -Wall -gifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))CFLAGS += -O0elseCFLAGS += -O2endififeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))INSTALL_PROGRAM += -sendifconfigure: configure-stampconfigure-stamp:dh_testdirtouch configure-stampbuild: build-stampbuild-stamp: configure-stampdh_testdir$(MAKE) EXIM_SRC="/usr/include/exim4" LDFLAGS="-shared -fPIC"touch build-stampclean:dh_testdirdh_testrootrm -f build-stamp configure-stamp-$(MAKE) cleandh_cleaninstall: builddh_testdirdh_testrootdh_clean -kdh_installdirsinstall -m755 sa-exim-*so \$(CURDIR)/debian/sa-exim/usr/lib/exim4/local_scan/sa-exim.soinstall -m755 accept*so \$(CURDIR)/debian/sa-exim/usr/lib/exim4/local_scan/accept.sosed "s/\/var\/spool\/exim/\/var\/spool\/sa-exim/" < sa-exim.conf > \$(CURDIR)/debian/sa-exim/etc/exim4/sa-exim.confchmod 644 $(CURDIR)/debian/sa-exim/etc/exim4/sa-exim.confinstall -m644 debian/15_sa-exim_plugin_path \$(CURDIR)/debian/sa-exim/etc/exim4/conf.d/maininstall -m644 SA-greylisting-2.4x.diff \$(CURDIR)/debian/sa-exim/usr/share/doc/sa-exim/sa2.xpatchesinstall -m644 SA-greylisting-2.6.diff \$(CURDIR)/debian/sa-exim/usr/share/doc/sa-exim/sa2.xpatchesinstall -m644 Greylisting.pm \$(CURDIR)/debian/sa-exim/usr/share/perl5/Mail/SpamAssassin/Plugin/Greylisting.pminstall -m644 greylistclean.cron \$(CURDIR)/debian/sa-exim/etc/cron.d/greylistcleaninstall -m755 greylistclean \$(CURDIR)/debian/sa-exim/usr/share/sa-exim/greylistclean# Build architecture-independent files here.binary-indep: build install# We have nothing to do by default.# Build architecture-dependent files here.binary-arch: build installdh_testdirdh_testrootdh_installchangelogs Changelog.htmldh_installdocsdh_installexamplesdh_installdebconfdh_installmandh_linkdh_stripdh_compressdh_fixperms -Xvar/spool/sa-eximdh_perldh_installdebdh_shlibdepsdh_gencontroldh_md5sumsdh_builddebbinary: binary-indep binary-arch.PHONY: build clean binary-indep binary-arch binary install configure