summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dd32b20..874d6c5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,8 @@
include config.mk
SRC = main.c draw.c screen.c files.c lineset.c
-INC = config.h gramscii.h
+INC = config.h gramscii.h arg.h
+DISTFILES = ${SRC} ${INC} Makefile config.mk README.md Changelog
all: options gramscii
@@ -40,3 +41,12 @@ uninstall:
@echo removing manpage from "${DESTDIR}${MANDIR}/man1"
@rm -f "${DESTDIR}${MANDIR}/man1/gramscii.1"
+dist: clean
+ @echo "making a tarball"
+ @mkdir -p ./gramscii-${VERSION}
+ @rm -rf ./gramscii-${VERSION}/*
+ @cp -R ${DISTFILES} ./gramscii-${VERSION}/
+ @tar -cf gramscii-${VERSION}.tar ./gramscii-${VERSION}
+ @gzip gramscii-${VERSION}.tar
+ @rm -rf gramscii-${VERSION}
+