diff options
author | Juerg Haefliger <juergh@gmail.com> | 2013-06-27 13:46:56 +0200 |
---|---|---|
committer | Juerg Haefliger <juergh@gmail.com> | 2013-06-27 13:46:56 +0200 |
commit | 9a0c412be667c2b0b235ceef920ebd2df72c1d2f (patch) | |
tree | c5fc695bb2d2d70c899fab2c03a6619e69940deb /Makefile | |
parent | c8eb622ae0c3f9fab2b25112aa87a2dbf39788db (diff) | |
download | vyos-cloud-init-9a0c412be667c2b0b235ceef920ebd2df72c1d2f.tar.gz vyos-cloud-init-9a0c412be667c2b0b235ceef920ebd2df72c1d2f.zip |
Add support for building a SLES rpm package
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -8,6 +8,10 @@ YAML_FILES+=$(shell find doc/examples -name "cloud-config*.txt" -type f ) CHANGELOG_VERSION=$(shell $(CWD)/tools/read-version) CODE_VERSION=$(shell python -c "from cloudinit import version; print version.version_string()") +ifeq ($(distro),) + distro = redhat +endif + all: test check_version pep8: @@ -25,7 +29,7 @@ test: check_version: @if [ "$(CHANGELOG_VERSION)" != "$(CODE_VERSION)" ]; then \ echo "Error: ChangeLog version $(CHANGELOG_VERSION)" \ - "not equal to code version $(CODE_VERSION)"; exit 2; \ + "not equal to code version $(CODE_VERSION)"; exit 2; \ else true; fi 2to3: @@ -37,9 +41,9 @@ clean: yaml: @$(CWD)/tools/validate-yaml.py $(YAML_FILES) - + rpm: - ./packages/brpm + ./packages/brpm --distro $(distro) deb: ./packages/bddeb |