File: rules

package info (click to toggle)
libdr-tarantool-perl 0.45-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 700 kB
  • ctags: 519
  • sloc: perl: 8,181; ansic: 2,398; makefile: 25; sh: 3
file content (35 lines) | stat: -rwxr-xr-x 846 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
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f

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

MAIN_MODULE	= lib/DR/Tarantool.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/libdr-tarantool-perl::
	test $(DEBVERSION) = $(PERLVERSION)
	make tardist

clean::
	rm -f Makefile.old	
	rm -fr .pc
	rm -f DR-Tarantool-*.tar.gz*

manifest: clean
	find -type f | grep -v '^./\.git'|sed 's/^..//' | sort -u > MANIFEST

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


DEB_INSTALL_CHANGELOGS_ALL :=
DEB_DH_INSTALLCHANGELOGS_ARGS := -XChanges