File: rules

package info (click to toggle)
libmojolicious-plugin-basicauth-perl 0.06-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 96 kB
  • sloc: perl: 36; makefile: 16
file content (22 lines) | stat: -rwxr-xr-x 624 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

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

MAIN_MODULE	= lib/Mojolicious/Plugin/BasicAuth.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/libmojolicious-plugin-basicauth-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 Makefile.old