All checks were successful
Build and publish the docker image / build (push) Successful in 58s
Signed-off-by: ngn <ngn@ngn.tf>
22 lines
317 B
Makefile
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
|