Permalink
Browse files

build: add dist target

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information...
felipec committed May 19, 2011
1 parent d237511 commit 089485fcc9b7d1046f180c00a4851ee8e1e816bf
Showing with 10 additions and 0 deletions.
  1. +10 −0 Makefile
View
@@ -50,4 +50,14 @@ install: $(targets)
clean:
$(QUIET_CLEAN)$(RM) -v $(targets) *.o *.d
+dist: base := gst-av-$(version)
+dist:
+ git archive --format=tar --prefix=$(base)/ HEAD > /tmp/$(base).tar
+ mkdir -p $(base)
+ echo $(version) > $(base)/.version
+ chmod 664 $(base)/.version
+ tar --append -f /tmp/$(base).tar --owner root --group root $(base)/.version
+ rm -r $(base)
+ gzip /tmp/$(base).tar
+
-include *.d

0 comments on commit 089485f

Please sign in to comment.