From 311faedc84f28f525839be7f95c56f726cc875f6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 1 Feb 2021 17:44:06 +0100 Subject: Add "dist" target to Makefile --- Makefile | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 191e8b0..088d7b2 100644 --- a/Makefile +++ b/Makefile @@ -113,6 +113,29 @@ $(DISTROS): deb-src debs: $(DISTROS) -.PHONY: all test clean install dep deb deb-src $(DISTROS) +DISTFILES= \ + $(SRC) \ + src/file.h \ + include/unicode.h \ + debian/control \ + debian/compat \ + debian/copyright \ + debian/source \ + debian/source/format \ + debian/changelog \ + debian/README.Debian \ + debian/rules \ + debian/unicode-tools.install \ + debian/libunicode-dev.install + +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 + +.PHONY: all test clean install dep deb debs deb-src dist $(DISTROS) -include $(wildcard $(SRC:.cpp=.d)) -- cgit v1.2.3