From 0a8313761af29dff03a375347aa59fedba9255b9 Mon Sep 17 00:00:00 2001 From: "Sergey A." Date: Wed, 13 Mar 2024 01:22:31 +0300 Subject: [PATCH] refactor(packaging): explicit make output Shows exactly what is going on. Also fixes a minor issue of not cleaning `./docs/*.7.gz` --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 7e8944dd..4d8727f7 100644 --- a/Makefile +++ b/Makefile @@ -21,15 +21,16 @@ docs: @echo 'done!' install: build docs - @mkdir -p $(TARGET_DIR) - @cp $(SOURCE_DIR)/$(BINARY) $(TARGET_DIR) + @mkdir -pv $(TARGET_DIR) + @cp -v $(SOURCE_DIR)/$(BINARY) $(TARGET_DIR) @chmod +x $(TARGET_DIR)/$(BINARY) - @find ./docs -type f -iname "*.1.gz" -exec cp {} $(MAN1_DIR) \; - @find ./docs -type f -iname "*.7.gz" -exec cp {} $(MAN7_DIR) \; + @cp -v ./docs/wayshot.1.gz $(MAN1_DIR) + @cp -v ./docs/wayshot.7.gz $(MAN7_DIR) + uninstall: - @rm -f $(TARGET_DIR)/$(BINARY) - @rm -f /usr/share/man/**/wayshot.* + @rm -fv $(TARGET_DIR)/$(BINARY) + @rm -fv /usr/share/man/**/wayshot.* check: @cargo fmt @@ -38,7 +39,7 @@ check: clean: @cargo clean - @rm -f ./docs/*.1.gz + @rm -fv ./docs/*.gz setup: @rustup install stable