Update makefile
This commit is contained in:
parent
a6891994d4
commit
b6921e5a56
9
Makefile
9
Makefile
@ -36,11 +36,8 @@ $(BUILD_DIR):
|
|||||||
$(BUILD_OUTPUT): $(BUILD_DIR) $(GEODB_PATH)
|
$(BUILD_OUTPUT): $(BUILD_DIR) $(GEODB_PATH)
|
||||||
CGO_ENABLED=0 go build $(BUILD_FLAGS) cmd/apiary.go
|
CGO_ENABLED=0 go build $(BUILD_FLAGS) cmd/apiary.go
|
||||||
|
|
||||||
$(FRONTEND_BUILD_DIR):
|
frontend:
|
||||||
pushd web/frontend
|
cd web/frontend && yarn install && yarn build
|
||||||
yarn install
|
|
||||||
yarn build
|
|
||||||
popd
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rv $(BUILD_DIR)
|
rm -rv $(BUILD_DIR)
|
||||||
@ -48,7 +45,7 @@ clean:
|
|||||||
|
|
||||||
geodb: $(GEODB_PATH)
|
geodb: $(GEODB_PATH)
|
||||||
|
|
||||||
build: $(BUILD_OUTPUT) $(FRONTEND_BUILD_DIR)
|
build: $(BUILD_OUTPUT) frontend
|
||||||
|
|
||||||
install: build
|
install: build
|
||||||
mkdir -p $(INSTALL_BIN_DIR)
|
mkdir -p $(INSTALL_BIN_DIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user