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 <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-07-14 17:26:32 +02:00
1 parent 83f83466b5
commit 61b1b5b457
1 file changed
+4
+4
View File
@@ -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)