summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 66193de..294acaf 100644
--- a/Makefile
+++ b/Makefile
@@ -77,6 +77,20 @@ test:
ADD_DEP=Makefile
+DISTFILES=$(shell git ls-files 2>/dev/null)
+ifeq ($(DISTFILES),)
+DISTFILES= \
+
+endif
+
+dist: clean
+ rm -rf $(PROJECTNAME)-$(VERSION)
+ mkdir $(PROJECTNAME)-$(VERSION)
+ cp --parents -r $(DISTFILES) $(PROJECTNAME)-$(VERSION)
+ tar cfJ ../$(PROJECTNAME)-$(VERSION).tar.xz $(PROJECTNAME)-$(VERSION)
+ rm -rf $(PROJECTNAME)-$(VERSION)
+ ls -l ../$(PROJECTNAME)-$(VERSION).tar.xz
+
# misc ---------------------------------------------------
clean:
-rm -f *.o *.a *.d $(SONAME1) $(SONAME2) $(SONAME3)