Update makefile

This commit is contained in:
Torjus Håkestad 2021-04-10 09:09:43 +02:00
parent a6891994d4
commit b6921e5a56

View File

@ -36,11 +36,8 @@ $(BUILD_DIR):
$(BUILD_OUTPUT): $(BUILD_DIR) $(GEODB_PATH)
CGO_ENABLED=0 go build $(BUILD_FLAGS) cmd/apiary.go
$(FRONTEND_BUILD_DIR):
pushd web/frontend
yarn install
yarn build
popd
frontend:
cd web/frontend && yarn install && yarn build
clean:
rm -rv $(BUILD_DIR)
@ -48,7 +45,7 @@ clean:
geodb: $(GEODB_PATH)
build: $(BUILD_OUTPUT) $(FRONTEND_BUILD_DIR)
build: $(BUILD_OUTPUT) frontend
install: build
mkdir -p $(INSTALL_BIN_DIR)