Remove all unused scripts
[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 ivi-targets.yaml ${DESTDIR}/usr/share/image-configurations/ivi
25         install -m 644 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/ivi/configs
26         install -D partitions/* ${DESTDIR}/usr/share/image-configurations/ivi/partitions
27         install -D scripts/* ${DESTDIR}/usr/share/image-configurations/ivi/scripts
28
29 test:
30         kickstarter -c ivi.yaml -r ivi-repos.yaml  -e ks/
31 tag:
32         git tag -a $(VERSION) -m "$(VERSION)"
33         git push --tags
34
35 changelog:
36         python ./scripts/gitlog2changelog.py
37
38
39 dist-bz2:
40         git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
41                 bzip2  > $(NAME)-$(VERSION).tar.bz2
42
43 dist-gz:
44         git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
45                 gzip  > $(NAME)-$(VERSION).tar.gz
46
47 dist: dist-bz2
48
49 clean:
50         rm -rf patterns.xml INDEX.xml group.xml *.xml