~ianmjones/snippetpixie

5447acd33adeee8174b6597841ec1aaeead96b34 — Ian M. Jones a month ago 54a1b3a
Ensure GUI Makefile picks up any frontend src changes
1 files changed, 7 insertions(+), 6 deletions(-)

M cmd/snippetpixiegui/Makefile
M cmd/snippetpixiegui/Makefile => cmd/snippetpixiegui/Makefile +7 -6
@@ 3,11 3,12 @@ OBJ := build/bin/snippetpixiegui
GO_SRC := $(wildcard *.go) $(wildcard ../../pkg/*/*.go) $(wildcard ../../internal/*/*.go)
GO_MOD := go.mod $(wildcard ../../pkg/*/*.go) $(wildcard ../../internal/*/*.go)

HTML_SRC := $(wildcard frontend/*.html) $(wildcard frontend/src/*.html)
CSS_SRC := $(wildcard frontend/*.css) $(wildcard frontend/src/*.css)
JS_SRC := $(wildcard frontend/*.js) $(wildcard frontend/src/*.js)
JSON_SRC := $(wildcard frontend/*.json) $(wildcard frontend/src/*.json)
TS_SRC := $(wildcard frontend/*.ts) $(wildcard frontend/src/*.ts)
HTML_SRC := $(wildcard frontend/*.html) $(wildcard frontend/src/*.html) $(wildcard frontend/src/*/*.html)
CSS_SRC := $(wildcard frontend/*.css) $(wildcard frontend/src/*.css $(wildcard frontend/src/*/*.css))
JS_SRC := $(wildcard frontend/*.js) $(wildcard frontend/src/*.js $(wildcard frontend/src/*/*.js))
JSON_SRC := $(wildcard frontend/*.json) $(wildcard frontend/src/*.json $(wildcard frontend/src/*/*.json))
TS_SRC := $(wildcard frontend/*.ts) $(wildcard frontend/src/*.ts $(wildcard frontend/src/*/*.ts))
SVELTE_SRC := $(wildcard frontend/*.svelte) $(wildcard frontend/src/*.svelte $(wildcard frontend/src/*/*.svelte))

DIST_DIR := frontend/dist



@@ 15,7 16,7 @@ all: $(OBJ)

.PHONY: all test test-verbose clean clean-all tidy run

$(OBJ): $(GO_SRC) $(GO_MOD) $(SRC) $(CSS_SRC) $(JS_SRC) $(JSON_SRC) $(TS_SRC)
$(OBJ): $(GO_SRC) $(GO_MOD) $(SRC) $(CSS_SRC) $(JS_SRC) $(JSON_SRC) $(TS_SRC) $(SVELTE_SRC)
	gofmt -w $(GO_SRC)
	wails generate module
	wails build