debian swirl logo

Back to the packages list libdata-streamdeserializer-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/Data/StreamDeserializer.pm

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

install/libdata-streamdeserializer-perl::
		@set -e; \
	if ! test "x$(DEBVERSION)" = "x$(PERVERSION)"; then \
			echo "Error: changelog has version $(DEBVERSION) " \
				"but module has $(PERVERSION)"; \
			false; \
		fi

clean::
		rm -f const-c.inc
		rm -f const-xs.inc
		rm -fr Makefile.old .pc

tarball: clean
		rm -f Data-StreamSerializer-*
	cd .. && tar --exclude= .git --exclude=debian -czvf \
                libdata-streamdeserializer-perl_$(DEBVERSION).orig.tar.gz \
                libdata-streamdeserializer-perl-$(DEBVERSION)    

Builds:

libdata-streamdeserializer-perl
non-blocking deserializer