Skip to content

Commit 04f2256

Browse files
committed
Makefile: + archive target
1 parent f6af845 commit 04f2256

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
.PHONY: build lib doc clean install uninstall test gen gen_ragel gen_metaocaml
2+
.PHONY: build lib doc clean install uninstall test gen gen_ragel gen_metaocaml archive
33

44
OCAMLBUILD=ocamlbuild -use-ocamlfind -no-links -j 0
55

@@ -42,3 +42,9 @@ clean:
4242
dune clean
4343

4444
distclean: clean
45+
46+
VERSION=$(shell git describe --tag --always)
47+
NAME=devkit-$(VERSION)
48+
49+
archive:
50+
git archive --prefix=$(NAME)/ HEAD | bzip2 > $(NAME).tbz

0 commit comments

Comments
 (0)