diff options
author | Scott Moser <smoser@brickies.net> | 2017-06-07 13:03:13 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-06-08 09:57:54 -0400 |
commit | e7c95208451422cfd3da7edfbd67dd271e7aa337 (patch) | |
tree | fa1dff7dccc9081a66cb42f57762b9f834243d49 /Makefile | |
parent | 7dcc15d02d997e88c075976a55bf07e789cd18fd (diff) | |
download | vyos-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-- | Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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 |