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