Reorganize structure and add weston images
[platform/upstream/meta-base.git] / Makefile
1 # ex: set tabstop=4 noexpandtab: 
2 VERSION = $(shell cat VERSION)
3 NAME=patterns-base
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/base
18         install -d ${DESTDIR}/usr/share/image-configurations/base/configs
19         install -d ${DESTDIR}/usr/share/image-configurations/base/custom
20         install -d ${DESTDIR}/usr/share/image-configurations/base/custom/scripts
21         install -d ${DESTDIR}/usr/share/image-configurations/base/custom/part
22         install -m 644 patterns/*.yaml ${DESTDIR}/usr/share/package-groups/base
23         install -m 644 base.yaml ${DESTDIR}/usr/share/image-configurations/base
24         install -m 644 base-repos.yaml ${DESTDIR}/usr/share/image-configurations/base
25         install -m 644 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/base/configs
26         install -D partitioning/* ${DESTDIR}/usr/share/image-configurations/base/partitioning
27         install -D scripts/* ${DESTDIR}/usr/share/image-configurations/base/scripts
28
29 test:
30         kickstarter -c base.yaml -e ks -r base-repos.yaml
31
32 tag:
33         git tag -a $(VERSION) -m "$(VERSION)"
34         git push --tags
35
36 changelog:
37         python ./scripts/gitlog2changelog.py
38
39
40 dist-bz2:
41         git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
42                 bzip2  > $(NAME)-$(VERSION).tar.bz2
43
44 dist-gz:
45         git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
46                 gzip  > $(NAME)-$(VERSION).tar.gz
47
48 dist: dist-bz2
49
50 clean:
51         rm -rf patterns.xml INDEX.xml group.xml *.xml