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/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 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/ivi/configs
25 install -D partitions/* ${DESTDIR}/usr/share/image-configurations/ivi/partitions
26 install -D scripts/* ${DESTDIR}/usr/share/image-configurations/ivi/scripts
29 kickstarter -c ivi.yaml -r ivi-repos.yaml -e ks/
31 git tag -a $(VERSION) -m "$(VERSION)"
35 python ./scripts/gitlog2changelog.py
39 git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
40 bzip2 > $(NAME)-$(VERSION).tar.bz2
43 git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
44 gzip > $(NAME)-$(VERSION).tar.gz
49 rm -rf patterns.xml INDEX.xml group.xml *.xml