From 61b1b5b457e51a6911b614c6bb98af2e7637f927 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 14 Jul 2015 17:26:32 +0200 Subject: [PATCH] Add support for 'make distdir' used by GNU configure and build. This patch adds support for being called with "make distdir" from a GNU configure and build based project. This was a requirement to get the Inadyn v1.99.14 release out. Signed-off-by: Joachim Nilsson --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index efc817d..b7e126e 100644 --- a/Makefile +++ b/Makefile @@ -136,6 +136,10 @@ clean: distclean: -$(Q)$(RM) $(JUNK) unittest *.o *.a *.so* *.unittest +# When called from GNU configure and build system +distdir: + @git archive --format=tar HEAD | (cd $(distdir); tar xf -) + dist: $(Q)echo "Building .xz tarball of $(PKG) in parent dir..." git archive --format=tar --prefix=$(PKG)/ v$(VERSION) | xz >../$(ARCHIVE)