mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
24 lines
510 B
Makefile
24 lines
510 B
Makefile
.PHONY: clean all vis lint
|
|
|
|
ifeq ($(GARBLE),y)
|
|
GO = garble -literals -tiny -debugdir=garbled
|
|
else
|
|
GO = go
|
|
endif
|
|
|
|
EXTPKGS = binary,bytes,crypto,encoding,errors,flag,fmt,internal,io,log,net,os,path,runtime,time,strings,sync,syscall
|
|
EXE = $(notdir $(shell pwd))
|
|
|
|
all:
|
|
$(GO) build $(BUILDOPTS) .
|
|
|
|
clean:
|
|
$(RM) $(EXE) $(EXE).exe
|
|
|
|
vis:
|
|
go-callvis -file xsd-vis -format png -ignore $(EXTPKGS) -group pkg,type .
|
|
../fixup-gv.sh xsd.go && cat xsd-vis.gv | dot -Tpng -oxsd-vis-fixedup.png
|
|
|
|
lint:
|
|
-golangci-lint run
|
|
|