2018-11-25 18:24:10 +00:00
|
|
|
.PHONY: clean all vis lint
|
2018-05-27 06:44:13 +00:00
|
|
|
|
2022-06-17 05:45:25 +00:00
|
|
|
ifeq ($(GARBLE),y)
|
|
|
|
GO = garble -literals -tiny -debugdir=garbled
|
|
|
|
else
|
|
|
|
GO = go
|
|
|
|
endif
|
|
|
|
|
2018-11-22 01:06:09 +00:00
|
|
|
EXTPKGS = binary,bytes,crypto,encoding,errors,flag,fmt,internal,io,log,net,os,path,runtime,time,strings,sync,syscall
|
2018-05-27 06:44:13 +00:00
|
|
|
EXE = $(notdir $(shell pwd))
|
|
|
|
|
|
|
|
all:
|
2022-06-17 05:45:25 +00:00
|
|
|
$(GO) build $(BUILDOPTS) .
|
2018-05-27 06:44:13 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) $(EXE) $(EXE).exe
|
|
|
|
|
2018-11-22 01:06:09 +00:00
|
|
|
vis:
|
2019-10-30 03:34:09 +00:00
|
|
|
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
|
2018-11-22 01:06:09 +00:00
|
|
|
|
2018-11-25 18:24:10 +00:00
|
|
|
lint:
|
2020-01-30 20:40:18 +00:00
|
|
|
-golangci-lint run
|
2018-11-25 18:24:10 +00:00
|
|
|
|