summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMagnus <mfeuer@jaguarlandrover.com>2014-09-13 15:10:17 -0700
committerMagnus <mfeuer@jaguarlandrover.com>2014-09-13 15:10:17 -0700
commit7b13e3a6e0b330c5e991a73fd415cebd4f11fb27 (patch)
treeff1409b6b740f59d7261c1f31866581fdd551aed /Makefile
parent65d7fe8a207463bb43dd254bfa1d5f69c91fcbb0 (diff)
downloadrvi_core-7b13e3a6e0b330c5e991a73fd415cebd4f11fb27.tar.gz
Fixed rpm build root directory creation. Added rpm clean
Signed-off-by: Magnus <mfeuer@jaguarlandrover.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 84b5210..584be93 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
#
#
-.PHONY: all deps compile setup clean doc setup_backend setup_device rpm
+.PHONY: all deps compile clean rpm rpmclean
VERSION=0.2
@@ -22,10 +22,16 @@ compile:
recomp:
./rebar compile skip_deps=true
-clean:
+clean: rpmclean
./rebar clean
+rpmclean:
+ rm -rf ./rpm/BUILD ./rpm/BUILDROOT ./rpm/RPM ./rpm/RPMS
+ rm -rf ./rpm/SOURCES ./rpm/SPECS ./rpm/SRPM ./rpm/SRPMS
+
rpm: deps compile
./setup_rvi_node.sh -n rvi-$(VERSION) -c rvi_sample.config
+ mkdir -p ./rpm/BUILD ./rpm/BUILDROOT ./rpm/RPM ./rpm/RPMS
+ mkdir -p ./rpm/SOURCES ./rpm/SPECS ./rpm/SRPM ./rpm/SRPMS
(cd rel; tar czf ../rpm/SOURCES/rvi-$(VERSION).tgz rvi-$(VERSION))
rpmbuild --define "_topdir $$PWD/rpm" -ba rpm/rvi-0.2.spec