summaryrefslogtreecommitdiff
path: root/Makefile
blob: da348afc76deb4ab2b74cfa74b59342ed178e621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# ex: set tabstop=4 noexpandtab: 
VERSION = $(shell cat VERSION)
NAME=meta-mobile
TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
DESTDIR=
ARCH=i586

ifeq ($(VERSION), $(TAGVER))
        TAG = $(TAGVER)
else
        TAG = "HEAD"
endif

all:

install:
	install -d ${DESTDIR}/usr/share/image-configurations/mobile/configs
	install -d ${DESTDIR}/usr/share/image-configurations/mobile/custom
	install -d ${DESTDIR}/usr/share/image-configurations/mobile/scripts
	install -d ${DESTDIR}/usr/share/image-configurations/mobile/partitions
	install -d ${DESTDIR}/usr/share/package-groups/mobile
	install -m 644 mobile.yaml ${DESTDIR}/usr/share/image-configurations/mobile
	install -m 644 mobile-repos.yaml ${DESTDIR}/usr/share/image-configurations/mobile
	install -m 644 mobile-targets.yaml ${DESTDIR}/usr/share/image-configurations/mobile
	install -m 644 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/mobile/configs
	install -D partitions/* ${DESTDIR}/usr/share/image-configurations/mobile/partitions
	install -D scripts/* ${DESTDIR}/usr/share/image-configurations/mobile/scripts
	install -m 644 patterns/*.yaml ${DESTDIR}/usr/share/package-groups/mobile

test:
	merge-patterns -o output/ -p patterns -s
	kickstarter -c mobile.yaml -e ks -r mobile-repos.yaml

tag:
	git tag -a $(VERSION) -m "$(VERSION)"
	git push --tags

changelog:
	python ./scripts/gitlog2changelog.py


dist-bz2:
	git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
		bzip2  > $(NAME)-$(VERSION).tar.bz2

dist-gz:
	git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
		gzip  > $(NAME)-$(VERSION).tar.gz

dist: dist-bz2

clean:
	rm -rf patterns.xml INDEX.xml group.xml *.xml