mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
b19687c80b
Signed-off-by: Russ Magee <rmagee@gmail.com>
18 lines
459 B
Makefile
18 lines
459 B
Makefile
.PHONY: clean all vis lint
|
|
|
|
EXTPKGS = bytes,errors,flag,fmt,internal,io,log,net,os,path,runtime,time,strings,sync,syscall,binary,encoding
|
|
EXE = $(notdir $(shell pwd))
|
|
|
|
all:
|
|
echo "BUILDOPTS:" $(BUILDOPTS)
|
|
go build $(BUILDOPTS) .
|
|
|
|
clean:
|
|
$(RM) $(EXE) $(EXE).exe
|
|
|
|
vis:
|
|
go-callvis -file xs-vis -format png -ignore $(EXTPKGS) -group pkg,type .
|
|
../fixup-gv.sh xs.go && cat xs-vis.gv | dot -Tpng -oxs-vis-fixedup.png
|
|
|
|
lint:
|
|
-gometalinter --deadline=60s | sort
|