From 7e796e106b00a577e301d44c243b259ba430e84f Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Sun, 20 Nov 2022 12:33:12 +0200 Subject: [PATCH] Impeove the clean and dist tasks --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e11bccb..1d849ec 100644 --- a/Makefile +++ b/Makefile @@ -33,14 +33,14 @@ stest: src/stest.o mv stest.o build/ clean: - rm -f build/dmenu build/stest $(OBJ) dist/dmenu-$(VERSION).tar.gz + rm -f build/dmenu build/stest $(OBJ) dist/dmenu-$(VERSION).tar.gz build/dmenu_run build/dmenu_path dist: clean mkdir -p $(DIST_DIR) cp LICENSE Makefile README.md config.mk $(DIST_DIR) cp -r src scripts doc $(DIST_DIR) - tar -cf dist/dmenu-$(VERSION).tar $(DIST_DIR) - gzip dist/dmenu-$(VERSION).tar + tar -cf $(DIST_DIR).tar $(DIST_DIR) + gzip $(DIST_DIR).tar rm -rf $(DIST_DIR) install: all