Merge "Add udev-rules-ivi to images" into tizen
[profile/ivi/meta-ivi.git] / Makefile
1 # ex: set tabstop=4 noexpandtab: 
2 VERSION = $(shell cat VERSION)
3 NAME=meta-ivi
4 TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
5 DESTDIR=
6 ARCH=i586
7
8 ifeq ($(VERSION), $(TAGVER))
9         TAG = $(TAGVER)
10 else
11         TAG = "HEAD"
12 endif
13
14 all:
15
16 install:
17         install -d ${DESTDIR}/usr/share/package-groups/ivi
18         install -d ${DESTDIR}/usr/share/image-configurations/ivi/configs
19         install -d ${DESTDIR}/usr/share/image-configurations/ivi/scripts
20         install -d ${DESTDIR}/usr/share/image-configurations/ivi/partitions
21         install -m 644 patterns/*.yaml ${DESTDIR}/usr/share/package-groups/ivi
22         install -m 644 ivi.yaml ${DESTDIR}/usr/share/image-configurations/ivi
23         install -m 644 ivi-repos.yaml ${DESTDIR}/usr/share/image-configurations/ivi
24         install -m 644 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/ivi/configs
25         install -D partitions/* ${DESTDIR}/usr/share/image-configurations/ivi/partitions
26         install -D scripts/* ${DESTDIR}/usr/share/image-configurations/ivi/scripts
27
28 test:
29         kickstarter -c ivi.yaml -r ivi-repos.yaml  -e ks/
30 tag:
31         git tag -a $(VERSION) -m "$(VERSION)"
32         git push --tags
33
34 changelog:
35         python ./scripts/gitlog2changelog.py
36
37
38 dist-bz2:
39         git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
40                 bzip2  > $(NAME)-$(VERSION).tar.bz2
41
42 dist-gz:
43         git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
44                 gzip  > $(NAME)-$(VERSION).tar.gz
45
46 dist: dist-bz2
47
48 clean:
49         rm -rf patterns.xml INDEX.xml group.xml *.xml