Makefile (205B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
.POSIX: .PHONY: clean tidy .SUFFIXES: .go BIN=gm SRCS=gm.go gemtext.go $(BIN): $(SRCS) go build -o $(BIN) ./... clean: rm -f $(BIN) tidy: gofmt -w $(SRCS) go mod tidy sed -i 's/\t/ /g' $(SRCS)