From e7c95208451422cfd3da7edfbd67dd271e7aa337 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 7 Jun 2017 13:03:13 -0400 Subject: Makefile: add deb-src and srpm targets. use PYVER more places. This just adds targets for deb-src and srpm, and uses PYVER anywhere where we run a python program. --- Makefile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 821be4b5..66d1dcad 100644 --- a/Makefile +++ b/Makefile @@ -79,15 +79,25 @@ yaml: @$(PYVER) $(CWD)/tools/validate-yaml.py $(YAML_FILES) rpm: - ./packages/brpm --distro $(distro) + $(PYVER) ./packages/brpm --distro=$(distro) + +srpm: + $(PYVER) ./packages/brpm --srpm --distro=$(distro) deb: @which debuild || \ { echo "Missing devscripts dependency. Install with:"; \ echo sudo apt-get install devscripts; exit 1; } - ./packages/bddeb + $(PYVER) ./packages/bddeb + +deb-src: + @which debuild || \ + { echo "Missing devscripts dependency. Install with:"; \ + echo sudo apt-get install devscripts; exit 1; } + $(PYVER) ./packages/bddeb -S -d + -.PHONY: test pyflakes pyflakes3 clean pep8 rpm deb yaml check_version -.PHONY: pip-test-requirements pip-requirements clean_pyc unittest unittest3 -.PHONY: style-check +.PHONY: test pyflakes pyflakes3 clean pep8 rpm srpm deb deb-src yaml +.PHONY: check_version pip-test-requirements pip-requirements clean_pyc +.PHONY: unittest unittest3 style-check -- cgit v1.2.3