summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-13 02:22:02 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-13 02:22:02 +0900
commit353101750d23948b42b71a450bcc1a5d8be21816 (patch)
tree041ab76879333398b19461f47832e19d168c710a /Makefile
parentb3f23061abe8b08e51522ec8e2b5cad0b8571f02 (diff)
downloadkickstarter-353101750d23948b42b71a450bcc1a5d8be21816.tar.gz
kickstarter-353101750d23948b42b71a450bcc1a5d8be21816.tar.bz2
kickstarter-353101750d23948b42b71a450bcc1a5d8be21816.zip
Tizen 2.1 base
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 36 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 404738b..a4da77f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,14 @@
-# ex: set tabstop=4 noexpandtab:
+VERSION = $(shell cat VERSION)
+NAME=kickstarter
+TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
+
+ifeq ($(VERSION), $(TAGVER))
+ TAG = $(TAGVER)
+else
+ TAG = "HEAD"
+endif
+
+
PYTHON=python
CHEETAH=cheetah
TEMPLATES=$(wildcard *.tmpl)
@@ -6,16 +16,38 @@ TEMPLATE_MODS=$(patsubst %.tmpl,%.py,$(TEMPLATES))
.SECONDARY: $(TEMPLATE_MODS)
KS=$(wildcard *.ks)
-all: $(TEMPLATE_MODS)
+all: tmpls
+ python setup.py build
+
+tmpls:
+ cd kickstart; make
+
+install: tmpls
+ python setup.py build
+ python setup.py install
%.py: %.tmpl
$(CHEETAH) compile --settings='useStackFrames=False' $<
+ks: $(TEMPLATES) configurations.yaml repos.yaml
+ kickstarter -c configurations.yaml -r repos.yaml
+
+tag:
+ git tag $(VERSION)
+
+dist-bz2:
+ git archive --format=tar --prefix=$(NAME)-$(TAGVER)/ $(TAG) | \
+ bzip2 > $(NAME)-$(TAGVER).tar.bz2
+
+dist-gz:
+ git archive --format=tar --prefix=$(NAME)-$(TAGVER)/ $(TAG) | \
+ gzip > $(NAME)-$(TAGVER).tar.gz
-ks: $(TEMPLATES) ../images.yaml
- python kickstarter.py -m ../images.yaml
+dist: dist-bz2
clean:
rm -f $(TEMPLATE_MODS)
rm -f $(addsuffix .bak,$(TEMPLATE_MODS))
rm -f *.pyc *.pyo
+ rm -rf dist/ build/ kickstart/kickstart.py kickstart/__init__.py *~ */*~
+ rm -rf *.egg-info/