debian swirl logo

Back to the packages list libanyevent-callback-perl

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/perl-makemaker.mk

MAIN_MODULE	= lib/AnyEvent/Callback.pm

DEBVERSION = $(shell dpkg-parsechangelog \
		|grep ^Version|awk '{print $$2}'|sed 's/-.*//' )
PERLVERSION = $(shell grep '^our[[:space:]]\+$$VERSION' $(MAIN_MODULE) \
		|head -n 1 \
		|awk '{print $$4}'|sed "s/[';']//g" )

install/libanyevent-callback-perl::
	test $(DEBVERSION) = $(PERLVERSION)
		make tardist

clean::
		rm -f Makefile.old	
		rm -fr .pc
		rm -f AnyEvent-Callback-*.tar.gz*

tarball:
		cd .. && tar \
			--exclude=debian \
			--exclude=.git \
			-czf libanyevent-callback-perl_$(DEBVERSION).orig.tar.gz \
				libanyevent-callback-perl-$(DEBVERSION)

Builds:

libanyevent-callback-perl
callback aggregator for anyevent watchers