1
0

Remove generation commands from web.go and Makefile.

This commit is contained in:
Alexander Andreev 2024-06-27 03:54:19 +04:00
parent 949c077bb0
commit 6fb5da9fd7
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34
2 changed files with 0 additions and 12 deletions

View File

@ -15,12 +15,6 @@ LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
${TARGET}: web/*_templ.go ${TARGET}: web/*_templ.go
go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.go go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.go
web/*.pug.go: web/templates/*.pug
ifeq (,$(wildcard $(shell go env GOPATH)/bin/jade))
go install github.com/Joker/jade/cmd/jade@latest
endif
go generate web/web.go
web/*_templ.go: web/*.templ web/*_templ.go: web/*.templ
ifeq (,$(wildcard $(shell go env GOPATH)/bin/templ)) ifeq (,$(wildcard $(shell go env GOPATH)/bin/templ))
go install github.com/a-h/templ/cmd/templ@latest go install github.com/a-h/templ/cmd/templ@latest

View File

@ -6,12 +6,6 @@ import (
"net/http" "net/http"
) )
//go:generate $GOPATH/bin/jade -basedir ./templates -pkg=web -writer index.pug stuff.pug mindflow.pug
//go:generate $GOPATH/bin/jade -basedir ./templates -pkg=web -writer about.pug guestbook.pug rss.pug
//go:generate $GOPATH/bin/jade -basedir ./templates -pkg=web -writer guestbook_admin.pug mindflow_admin.pug
//go:generate $GOPATH/bin/jade -basedir ./templates -pkg=web -writer article.pug privacy.pug
//go:generate $GOPATH/bin/jade -basedir ./templates -pkg=web -writer errorXXX.pug
//go:embed assets //go:embed assets
var assetsDir embed.FS var assetsDir embed.FS