Added Makefile target for distribution tarballs.

This commit is contained in:
Aaron Marcher 2017-08-13 23:05:22 +02:00
parent 96334e2079
commit aa17443013
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A
1 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,14 @@ config.h:
clean: clean:
rm -f slstatus rm -f slstatus
dist:
rm -rf "slstatus-$(VERSION)"
mkdir -p "slstatus-$(VERSION)"
cp -R arg.h config.def.h config.mk LICENSE Makefile README slstatus.1 \
slstatus.c slstatus.png "slstatus-$(VERSION)"
tar -cf - "slstatus-$(VERSION)" | gzip -c > "slstatus-$(VERSION).tar.gz"
rm -rf "slstatus-$(VERSION)"
install: all install: all
mkdir -p "$(DESTDIR)$(PREFIX)/bin" mkdir -p "$(DESTDIR)$(PREFIX)/bin"
cp -f slstatus "$(DESTDIR)$(PREFIX)/bin" cp -f slstatus "$(DESTDIR)$(PREFIX)/bin"