summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2017-06-07 13:03:13 -0400
committerScott Moser <smoser@brickies.net>2017-06-08 09:57:54 -0400
commite7c95208451422cfd3da7edfbd67dd271e7aa337 (patch)
treefa1dff7dccc9081a66cb42f57762b9f834243d49 /Makefile
parent7dcc15d02d997e88c075976a55bf07e789cd18fd (diff)
downloadvyos-cloud-init-e7c95208451422cfd3da7edfbd67dd271e7aa337.tar.gz
vyos-cloud-init-e7c95208451422cfd3da7edfbd67dd271e7aa337.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 15 insertions, 5 deletions
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