From b6921e5a56145b1982eae952d61962e46db509d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 10 Apr 2021 09:09:43 +0200 Subject: [PATCH] Update makefile --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 025c792..27187cc 100644 --- a/Makefile +++ b/Makefile @@ -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)