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