tren/Makefile
ngn 4df8b90dae
All checks were successful
Build and publish the docker image / build (push) Successful in 58s
initial commit
Signed-off-by: ngn <ngn@ngn.tf>
2025-04-05 09:58:58 +03:00

22 lines
317 B
Makefile

SCSS = $(wildcard static/css/*.scss)
CSS = $(patsubst %.scss,%.css,$(SCSS))
GOSRCS = $(wildcard *.go) $(wildcard */*.go)
CGO_ENABLED = 1
all: tren.elf
tren.elf: $(CSS) $(GOSRCS)
CGO_ENABLED=$(CGO_ENABLED) go build -o $@
%.css: %.scss
sassc $^ $@
format:
gofmt -s -w .
clean:
rm *.elf
.PHONY: format clean