#!/usr/bin/make -f # Made with the aid of debmake, by Christoph Lameter, # based on the sample debian/rules file for GNU hello by Ian Jackson. package=ivy-perl ifndef PERL PERL=/usr/bin/perl endif TMP=`pwd`/debian/tmp archlib = `$(PERL) -MConfig -e 'print $$Config{installarchlib}'` #config = INSTALLDIRS=perl INSTALLMAN1DIR=$(TMP)/usr/man/man1 INSTALLMAN3DIR=$(TMP)/usr/man/man3 INSTALLPRIVLIB=$(TMP)/usr/lib/perl5 INSTALLARCHLIB=$(TMP)$(archlib) INSTALLSCRIPT=$(TMP)/usr/bin build: $(checkdir) $(PERL) Makefile.PL INSTALLDIRS=vendor FULLPERL="PERL_DL_NONLAZY=0 /usr/bin/perl" $(MAKE) $(MAKE) test touch build clean: $(checkdir) -rm -f build -$(MAKE) clean -rm -f `find . -name "*~"` -rm -rf debian/tmp debian/files* core debian/substvars install: $(checkdir) -rm -rf debian/tmp install -d debian/tmp/usr $(MAKE) pure_install PREFIX=$(TMP)/usr binary-indep: build install binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_install --source=$(CURDIR)/debian/tmp # 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 # Below here is fairly generic really binary: binary-indep binary-arch checkroot: $(checkdir) test root = "`whoami`" .PHONY: binary binary-arch binary-indep clean checkroot