1 # ex: set tabstop=4 noexpandtab:
2 VERSION = $(shell cat VERSION)
4 TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
8 ifeq ($(VERSION), $(TAGVER))
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 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/tv/configs
25 install -D partitions/* ${DESTDIR}/usr/share/image-configurations/tv/partitions
26 install -D scripts/* ${DESTDIR}/usr/share/image-configurations/tv/scripts
27 install -m 644 patterns/*.yaml ${DESTDIR}/usr/share/package-groups/tv
30 merge-patterns -o output/ -p patterns -s
31 kickstarter -c tv.yaml -e ks -r tv-repos.yaml
34 git tag -a $(VERSION) -m "$(VERSION)"
38 python ./scripts/gitlog2changelog.py
42 git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
43 bzip2 > $(NAME)-$(VERSION).tar.bz2
46 git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
47 gzip > $(NAME)-$(VERSION).tar.gz
52 rm -rf patterns.xml INDEX.xml group.xml *.xml