mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
Added go-code-visualizer PNG and 'make vis' rule to generate
Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
parent
5fb227b9f8
commit
b63252dbf6
2 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -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
BIN
viz_hkexsh_dot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 675 KiB |
Loading…
Reference in a new issue