summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJuerg Haefliger <juergh@gmail.com>2013-06-27 13:46:56 +0200
committerJuerg Haefliger <juergh@gmail.com>2013-06-27 13:46:56 +0200
commit9a0c412be667c2b0b235ceef920ebd2df72c1d2f (patch)
treec5fc695bb2d2d70c899fab2c03a6619e69940deb /Makefile
parentc8eb622ae0c3f9fab2b25112aa87a2dbf39788db (diff)
downloadvyos-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--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b659836f..29bfe0bd 100644
--- a/Makefile
+++ b/Makefile
@@ -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