From 12031abc893ccf41c4615251698d87229f1961d2 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 31 Jul 2019 12:09:18 +0100 Subject: add target dist to Makefile --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Makefile') 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} + -- cgit v1.2.3