diff options
| author | KatolaZ <katolaz@freaknet.org> | 2019-07-31 12:09:18 +0100 | 
|---|---|---|
| committer | KatolaZ <katolaz@freaknet.org> | 2019-07-31 12:09:18 +0100 | 
| commit | 12031abc893ccf41c4615251698d87229f1961d2 (patch) | |
| tree | c8bdf4a1e7ed0ba14560c9f86ed589fb118d3a66 /Makefile | |
| parent | dd06a37db1d4471ca9c3e84173939b22c0f7b8a5 (diff) | |
add target dist to Makefile
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 | 
1 files changed, 11 insertions, 1 deletions
| @@ -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} + | 
