From e8959273030f2ab1415238fd031c0d21163a0832 Mon Sep 17 00:00:00 2001 From: Mikhail Petrov Date: Thu, 12 Oct 2023 11:02:53 +0300 Subject: [PATCH] Fix PHONY Signed-off-by: Mikhail Petrov --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index b6a8ad2..ec37570 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ $(SITE_DIR): -w /usr/src/app node:14-alpine \ sh -c 'npm install && REACT_APP_VERSION=$(VERSION) npm run build && chown -R $$CURRENT_UID: $(SITE_DIR)' +.PHONY: start start: docker run \ -p $(PORT):3000 \ @@ -28,20 +29,25 @@ start: -w /usr/src/app node:14-alpine \ sh -c 'npm install --silent && npm run build && npm install -g serve && serve -s $(SITE_DIR) -p 3000' +.PHONY: release release: $(SITE_DIR) cp $(SITE_DIR)/index.html $(SITE_DIR)/agreement @ln -sf $(SITE_DIR) $(RELEASE_DIR) @tar cfvhz $(RELEASE_PATH) $(RELEASE_DIR) +.PHONY: clean clean: @echo "Cleaning up ..." @rm -rf $(SITE_DIR) $(RELEASE_DIR) $(RELEASE_PATH) +.PHONY: release_name release_name: @echo $(RELEASE_PATH) +.PHONY: version version: @echo $(VERSION) +.PHONY: test test: @npm run test