File: rules

package info (click to toggle)
rpy2 3.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,180 kB
  • sloc: python: 14,053; ansic: 427; makefile: 191
file content (33 lines) | stat: -rwxr-xr-x 867 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# debian/rules file for the Debian GNU/Linux python-rpy2 package
# Copyright 2004 - 2018 by Dirk Eddelbuettel <edd@debian.org>

#buildvers       := $(shell pyversions -sv)
build3vers      := $(shell py3versions -sv)

version         := $(shell head -1 debian/changelog | perl -nle 'm/\((.*)-\d\)/ && print $$1')

showversion:
	@echo "Version is ${version}"

tarball:
	(cd .. && \
		tar czf ../$(project)_${version}.orig.tar.gz ./$(project) \
			--exclude=.svn --exclude=debian/ --exclude=.hg)

%:
	dh $@ --with python3 --buildsystem=pybuild

# Disable tests since not shipped by upstream
# see https://bitbucket.org/rpy2/rpy2/issues/528/please-ship-tests-along-with-the-release
override_dh_auto_test:

override_dh_installdocs:
	dh_installdocs -a NEWS

override_dh_clean:
	dh_clean
#	rm -rf $(CURDIR)/build

override_dh_auto_clean:
	echo "Skipping"