From 40d18b0a178d48b1f0332aa4770a94ab6f3a4dc0 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 8 Dec 2024 04:14:09 +0400 Subject: [PATCH] Updated Makefile. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index bbcae29..c55450d 100755 --- a/Makefile +++ b/Makefile @@ -6,21 +6,21 @@ SYSDDIR=${SYSDDIR_:/%=%} DESTDIR:= PREFIX:=/usr/local -VERSION=23.32.0 +VERSION=24.49.0 FLAGS=-buildmode=pie -modcacherw -mod=readonly -trimpath LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo .PHONY: run install uninstall clean -${TARGET}: web/*.jade.go +${TARGET}: web/*_templ.go go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.go -web/*.jade.go: web/templates/*.jade -ifeq (,$(wildcard $(shell go env GOPATH)/bin/jade)) - go install github.com/Joker/jade/cmd/jade@latest +web/*_templ.go: web/*.templ +ifeq (,$(wildcard $(shell go env GOPATH)/bin/templ)) + go install github.com/a-h/templ/cmd/templ@latest endif - go generate web/web.go + $(shell go env GOPATH)/bin/templ generate run: bin/${TARGET} -file-handling -path /mnt/data -listen 127.0.0.1:19135