added packages to automated QA pattern
[platform/upstream/meta-generic.git] / Makefile
1 # ex: set tabstop=4 noexpandtab: 
2 VERSION = $(shell cat VERSION)
3 NAME=meta-generic
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/generic
18         install -d ${DESTDIR}/usr/share/image-configurations/generic/configs
19         install -d ${DESTDIR}/usr/share/image-configurations/generic/scripts
20         install -d ${DESTDIR}/usr/share/image-configurations/generic/partitions
21         install -m 644 patterns/*.yaml ${DESTDIR}/usr/share/package-groups/generic
22         install -m 644 generic.yaml ${DESTDIR}/usr/share/image-configurations/generic
23         install -m 644 generic-repos.yaml ${DESTDIR}/usr/share/image-configurations/generic
24         install -m 644 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/generic/configs
25         install -D partitions/* ${DESTDIR}/usr/share/image-configurations/generic/partitions
26         install -D scripts/* ${DESTDIR}/usr/share/image-configurations/generic/scripts
27
28 test:
29         kickstarter -c generic.yaml -r generic-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