From ed394507d3ef4db9a2c9eec39fb03df2e26d09c8 Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Tue, 1 Feb 2022 18:12:44 +0100 Subject: [PATCH] Fix default make target --- Makefile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 5970bcf..f631975 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,9 @@ export CGO_ENABLED = 0 export NEXT_TELEMETRY_DISABLED = 1 -.PHONY: clean -clean: - rm -f hetty - rm -rf ./cmd/hetty/admin - rm -rf ./admin/node_modules - rm -rf ./admin/dist - rm -rf ./admin/.next +.PHONY: build +build: build-admin + go build ./cmd/hetty .PHONY: build-admin build-admin: @@ -16,6 +12,9 @@ build-admin: yarn run export && \ mv dist ../cmd/hetty/admin -.PHONY: build -build: build-admin - go build ./cmd/hetty \ No newline at end of file +.PHONY: clean +clean: + rm -f hetty + rm -rf ./cmd/hetty/admin + rm -rf ./admin/dist + rm -rf ./admin/.next \ No newline at end of file