From 361123baca7de7ccb663e4bab557cafc8d2d9cd3 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 17 May 2022 01:10:47 +0200 Subject: [PATCH] added deps to makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9793ad3..0546a38 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ BINARY = s3share BUILD_DIR = build .PHONY: all -all: clean build +all: clean deps build .PHONY:build build: $(BUILD_DIR)/$(BINARY) $(BUILD_DIR)/public @@ -13,6 +13,12 @@ $(BUILD_DIR)/$(BINARY): $(BUILD_DIR)/public: npm run build && cp -r public/ $(BUILD_DIR)/public +.PHONY: deps +deps: node_modules + +node_modules: + npm install + .PHONY:clean clean: rm -rf $(BUILD_DIR) && rm -rf public/build/