From fb99309e78dc13b05fb82626b9e84158f032dfad Mon Sep 17 00:00:00 2001 From: Darp Alakun Date: Sat, 4 Jan 2025 19:57:31 -0500 Subject: [PATCH] build: update build process to include dependency installation --- Makefile | 11 +++++++---- cmd/main.go => main.go | 0 2 files changed, 7 insertions(+), 4 deletions(-) rename cmd/main.go => main.go (100%) diff --git a/Makefile b/Makefile index 966a72a..ec0043e 100644 --- a/Makefile +++ b/Makefile @@ -7,15 +7,18 @@ BINDIR ?= $(GOPATH)/bin DOCKER := $(shell which docker) HTTPS_GIT := github.com/onsonr/hway.git +export RELEASE_DATE="$(date +%Y).$(date +%V).$(date +%u)" -all: install test +all: deps install test + +deps: + go install github.com/apple/pkl-go/cmd/pkl-gen-go@latest + go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest + go install github.com/go-task/task/v3/cmd/task@latest build: go.sum GOOS=js GOARCH=wasm go build -o build/app.wasm ./cmd/main.go -install: go.sum - go install -mod=readonly ./cmd/hway - ######################################## ### Tools & dependencies ######################################## diff --git a/cmd/main.go b/main.go similarity index 100% rename from cmd/main.go rename to main.go