Source

go-play / Makefile

Full commit
%.6: %.go
	6g $<
%: %.6
	6l -o $@ $<

SRC = $(wildcard *.go)
PROGRAMS = $(SRC:%.go=%)

all: $(PROGRAMS)

clean:
	rm -f $(PROGRAMS)
	rm -f $(PROGRAMS:%=%.6)

fresh: clean all

.PHONY: all clean fresh url