From f36751844308263a6023cd15d2e836c52e980d9f Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Thu, 11 May 2023 21:46:45 +0300 Subject: [PATCH] [fix/add] improve the dist task --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0f81813..090c0a8 100644 --- a/Makefile +++ b/Makefile @@ -31,15 +31,17 @@ ${BUILD_DIR}: ${OBJ} clean: rm -rf ${OBJ_DIR} -dist: build/archy-dwm archy-dwm.desktop +dist: ${BUILD_DIR} archy-dwm.desktop mkdir -p archy-dwm_${VERSION} - cp -R LICENSE ${BUILD_DIR} ${OBJ_DIR}/archy-dwm.desktop archy-dwm.1 dwm.png archy-dwm_${VERSION} + cp -R LICENSE README.md ${BUILD_DIR} ${OBJ_DIR}/archy-dwm.desktop archy-dwm.1 dwm.png archy-dwm_${VERSION} tar -cf archy-dwm_${VERSION}.tar archy-dwm_${VERSION} gzip archy-dwm_${VERSION}.tar rm -rf archy-dwm_${VERSION} + mkdir -p dist + mv archy-dwm_${VERSION}.tar.gz dist echo "The tarball is ready." - printf "Tarball size: %s\n" $$(du -h archy-dwm_${VERSION}.tar.gz | cut -f1) - printf "Tarball hash: %s\n" $$(sha256sum archy-dwm_${VERSION}.tar.gz | cut -d' ' -f1) + printf "Tarball size: %s\n" $$(du -h dist/archy-dwm_${VERSION}.tar.gz | cut -f1) + printf "Tarball hash: %s\n" $$(sha256sum dist/archy-dwm_${VERSION}.tar.gz) install: all mkdir -p ${DESTDIR}${PREFIX}/bin