File: rules

package info (click to toggle)
libmr-tarantool-perl 0.0.24-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 296 kB
  • ctags: 218
  • sloc: perl: 3,662; makefile: 19
file content (26 lines) | stat: -rwxr-xr-x 653 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
23
24
25
26
#!/usr/bin/make -f

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

MAIN_MODULE	= lib/MR/Tarantool/Box.pm

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

install/libmr-tarantool-perl::
	rm -fr debian/libmr-tarantool-perl/usr/share/man

clean::
	rm -f Makefile.old	
	rm -fr .pc

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