Added go-code-visualizer PNG and 'make vis' rule to generate

Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
Russ Magee 2018-11-20 22:34:16 -08:00
parent 5fb227b9f8
commit b63252dbf6
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
.PHONY: info clean common client server passwd subpkgs install uninstall
.PHONY: vis clean common client server passwd subpkgs install uninstall
SUBPKGS = logger spinsult hkexnet herradurakex
TOOLS = hkexpasswd hkexsh hkexshd
@ -49,6 +49,13 @@ endif
passwd: common
$(MAKE) -C hkexpasswd
vis:
@which go-code-visualizer >/dev/null 2>&1; \
stat=$$?; if [ $$stat -ne "0" ]; then \
/bin/echo "go-code-visualizer not found. Run go get github.com/CodeHipster/go-code-visualizer to install."; \
else \
go-code-visualizer . && dot -Tpng dot-visual.gv -o viz_hkexsh_dot.png; \
fi
install:
cp hkexsh/hkexsh $(INSTPREFIX)/bin

BIN
viz_hkexsh_dot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 KiB