go/Makefile @ fdb4a84069f3

More
author Steve Losh <steve@stevelosh.com>
date Mon, 18 Sep 2023 08:57:48 -0400
parents dabb5f1ef3b2
children (none)
files := $(shell ls *.go)
names := $(files:.go=)

.PHONY: all clean $(names)

all: $(names)

$(names): %: bin/%

bin/%: %.go
	mkdir -p bin
	go build $<
	mv $(@F) bin/

clean:
	rm -rf bin