ref: 3094ffc94b9fb6d1335424f9f0497b278d832f38
parent: b37173e52eb390fb0601be3cc149fa708c748e75
author: Tor Andersson <[email protected]>
date: Wed Apr 30 09:21:23 EDT 2014
Add "make tarball" rule to create release archives.
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,13 @@
install -t $(DESTDIR)$(libdir) build/libmujs.a
install -t $(DESTDIR)$(bindir) build/mujs
+VERSION = $(shell git describe --tags --always)
+
+tarball:
+ git archive --format=zip --prefix=mujs-$(VERSION)/ HEAD > mujs-$(VERSION).zip
+ git archive --format=tar --prefix=mujs-$(VERSION)/ HEAD | gzip > mujs-$(VERSION).tar.gz
+ git archive --format=tar --prefix=mujs-$(VERSION)/ HEAD | xz > mujs-$(VERSION).tar.xz
+
tags: $(SRCS) main.c $(HDRS)
ctags $^