Makefile: fix make dist if it is run more than once

... and stream directly to compressed tarball.
This commit is contained in:
Hiltjo Posthuma 2022-09-02 11:52:58 +02:00
parent 3fab03ea0b
commit 00698e45ea

View File

@ -53,8 +53,7 @@ dist: clean
mkdir -p ii-$(VERSION)
cp -R Makefile README FAQ LICENSE strlcpy.c arg.h \
ii.c ii.1 ii-$(VERSION)
tar -cf ii-$(VERSION).tar ii-$(VERSION)
gzip ii-$(VERSION).tar
tar -cf - ii-$(VERSION) | gzip -c > ii-$(VERSION).tar.gz
rm -rf ii-$(VERSION)
clean: