summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRonan Le Martret <ronan@fridu.net>2013-12-19 12:14:46 +0100
committerRonan Le Martret <ronan@fridu.net>2013-12-19 12:14:46 +0100
commitc959650fe60861e3ef89c1adbebefd1c8d36215d (patch)
treee69b22252d39b6991b4c12db22712473cdd6fe2c /Makefile
parentaa3a76eb9d79d97fecb00c0ec8af2c3bfaaa5cf3 (diff)
downloadmeta-c959650fe60861e3ef89c1adbebefd1c8d36215d.tar.gz
meta-c959650fe60861e3ef89c1adbebefd1c8d36215d.tar.bz2
meta-c959650fe60861e3ef89c1adbebefd1c8d36215d.zip
- init project.
Change-Id: I0e06d334c6a79582a104ed41300692376fc98878 Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9720056
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,49 @@
+# ex: set tabstop=4 noexpandtab:
+VERSION = $(shell cat VERSION)
+NAME=meta-generic
+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/package-groups/generic
+ install -d ${DESTDIR}/usr/share/image-configurations/generic/configs
+ install -d ${DESTDIR}/usr/share/image-configurations/generic/scripts
+ install -d ${DESTDIR}/usr/share/image-configurations/generic/partitions
+ install -m 644 patterns/*.yaml ${DESTDIR}/usr/share/package-groups/generic
+ install -m 644 generic.yaml ${DESTDIR}/usr/share/image-configurations/generic
+ install -m 644 generic-repos.yaml ${DESTDIR}/usr/share/image-configurations/generic
+ install -m 644 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/generic/configs
+ install -D partitions/* ${DESTDIR}/usr/share/image-configurations/generic/partitions
+ install -D scripts/* ${DESTDIR}/usr/share/image-configurations/generic/scripts
+
+test:
+ kickstarter -c generic.yaml -r generic-repos.yaml -e ks/
+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