summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2021-02-01 17:44:06 +0100
committerRoland Reichwein <mail@reichwein.it>2021-02-01 17:44:06 +0100
commit311faedc84f28f525839be7f95c56f726cc875f6 (patch)
tree6432c3b5606bfcadec7cb790ac359a0882f32fc0 /Makefile
parentf34a0aa3a2d46d349a41c0b28939176791c2efbe (diff)
Add "dist" target to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 24 insertions, 1 deletions
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))