From df75816c0858263eab97bae6bd57c23e28b62cf5 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 29 Oct 2014 08:12:01 -0200 Subject: [PATCH] create a dist tarball --- .gitignore | 1 + Makefile | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b1c8b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dist diff --git a/Makefile b/Makefile index 10a50a5..0252e59 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,28 @@ +VERSION = 1 PREFIX = /usr TARGET = $(DESTDIR)$(PREFIX)/src/colab/dependencies all clean: @echo Nothing to $@ +SOURCES = *.tar.* *.zip + install: install -d -m 0755 $(TARGET) - install -m 0644 *.tar.* *.zip $(TARGET) + install -m 0644 $(SOURCES) $(TARGET) + +DISTDIR = colab-deps-src-$(VERSION) +TARBALL = dist/$(DISTDIR).tar.gz + +sdist: $(TARBALL) + +$(TARBALL): + mkdir -p $$(dirname $(TARBALL)) + $(RM) $(TARBALL) + mkdir $(DISTDIR) + ln Makefile $(SOURCES) $(DISTDIR) + tar caf $(TARBALL) $(DISTDIR) + $(RM) -r $(DISTDIR) + +distclean: + $(RM) -r $$(dirname $(TARBALL)) -- libgit2 0.21.2