From ac54d689b48a6f97ab592230d74ee6bd64fc1bd5 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 7 Jan 2023 12:43:41 +0100 Subject: Added "make dist" --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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) -- cgit v1.2.3