commit 2607a5b064c08f659e08043ec647eb0ff303e07b parent 91875cfafd2591e760929b06572090be83297ab7 Author: Jochen Sprickerhof <git@jochen.sprickerhof.de> Date: Thu, 16 Apr 2020 21:21:21 +0200 Add make dist Diffstat:
M | Makefile | | | 8 | ++++++++ |
M | config.mk | | | 3 | +++ |
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -27,6 +27,14 @@ clean: distclean: clean rm -f config.h +dist: clean + mkdir -p scroll-$(VERSION) + cp -R README scroll.1 TODO Makefile config.mk config.def.h \ + ptty.c scroll.c \ + scroll-$(VERSION) + tar -cf - scroll-$(VERSION) | gzip > scroll-$(VERSION).tar.gz + rm -rf scroll-$(VERSION) + .c: $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< -lutil diff --git a/config.mk b/config.mk @@ -1,3 +1,6 @@ +# scroll version +VERSION = 0.1 + # paths PREFIX = /usr/local BINDIR = $(PREFIX)/bin