summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-07 12:43:41 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-07 12:43:41 +0100
commitac54d689b48a6f97ab592230d74ee6bd64fc1bd5 (patch)
treeddfa2280165d9065a0f6ecf933632a6ffa78f6ac /Makefile
parent05d1823e1220a6bdf5f31990462b66ee60c0c9d1 (diff)
Added "make dist"
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)