added deps to makefile
This commit is contained in:
parent
05e438eb23
commit
361123baca
8
Makefile
8
Makefile
@ -2,7 +2,7 @@ BINARY = s3share
|
|||||||
BUILD_DIR = build
|
BUILD_DIR = build
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: clean build
|
all: clean deps build
|
||||||
|
|
||||||
.PHONY:build
|
.PHONY:build
|
||||||
build: $(BUILD_DIR)/$(BINARY) $(BUILD_DIR)/public
|
build: $(BUILD_DIR)/$(BINARY) $(BUILD_DIR)/public
|
||||||
@ -13,6 +13,12 @@ $(BUILD_DIR)/$(BINARY):
|
|||||||
$(BUILD_DIR)/public:
|
$(BUILD_DIR)/public:
|
||||||
npm run build && cp -r public/ $(BUILD_DIR)/public
|
npm run build && cp -r public/ $(BUILD_DIR)/public
|
||||||
|
|
||||||
|
.PHONY: deps
|
||||||
|
deps: node_modules
|
||||||
|
|
||||||
|
node_modules:
|
||||||
|
npm install
|
||||||
|
|
||||||
.PHONY:clean
|
.PHONY:clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(BUILD_DIR) && rm -rf public/build/
|
rm -rf $(BUILD_DIR) && rm -rf public/build/
|
||||||
|
Loading…
Reference in New Issue
Block a user