Commits

William Giokas committed 3b9fc08

make dist uses git archive

No more having to add files to a damn list.

Signed-off-by: William Giokas <1007380@gmail.com>

  • Participants
  • Parent commits 9c2f70b

Comments (0)

Files changed (2)

 *.swp
 *.o
 bin/
+dist/
 dwmstatus
 *.gz
 
 dist: clean
 	@echo creating dist tarball
-	@mkdir -p ${NAME}-${VERSION}
-	@cp -R Makefile config.mk LICENSE \
-		${SRC} ${DOC} ${CONF} include/ README.md ${NAME}-${VERSION}
-	@tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION}
-	@gzip ${NAME}-${VERSION}.tar
-	@rm -rf ${NAME}-${VERSION}
+	@mkdir -p dist
+	@git archive -o dist/${NAME}-${VERSION}.tar.gz --prefix="${NAME}-${VERSION}/" -9 v${VERSION}
 
 install: all
 	@echo installing executable file to ${DESTDIR}${PREFIX}/bin