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/mobile/configs
18 install -d ${DESTDIR}/usr/share/image-configurations/mobile/custom
19 install -d ${DESTDIR}/usr/share/image-configurations/mobile/scripts
20 install -d ${DESTDIR}/usr/share/image-configurations/mobile/partitions
21 install -d ${DESTDIR}/usr/share/package-groups/mobile
22 install -m 644 mobile.yaml ${DESTDIR}/usr/share/image-configurations/mobile
23 install -m 644 mobile-repos.yaml ${DESTDIR}/usr/share/image-configurations/mobile
24 install -m 644 mobile-targets.yaml ${DESTDIR}/usr/share/image-configurations/mobile
25 install -m 644 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/mobile/configs
26 install -D partitions/* ${DESTDIR}/usr/share/image-configurations/mobile/partitions
27 install -D scripts/* ${DESTDIR}/usr/share/image-configurations/mobile/scripts
28 install -m 644 patterns/*.yaml ${DESTDIR}/usr/share/package-groups/mobile
31 merge-patterns -o output/ -p patterns -s
32 kickstarter -c mobile.yaml -e ks -r mobile-repos.yaml
35 git tag -a $(VERSION) -m "$(VERSION)"
39 python ./scripts/gitlog2changelog.py
43 git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
44 bzip2 > $(NAME)-$(VERSION).tar.bz2
47 git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
48 gzip > $(NAME)-$(VERSION).tar.gz
53 rm -rf patterns.xml INDEX.xml group.xml *.xml