diff --git a/Makefile b/Makefile index e598960..b71a8a8 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.DEFAULT_GOAL := build +.DEFAULT_GOAL := all # seems superfluous #.PHONY: fmt vet build clean @@ -20,3 +20,4 @@ buildwin: clean: rm -rf bin +all: build buildwin diff --git a/cmd/agent/agent_linux.go b/cmd/agent/agent_linux.go deleted file mode 100755 index 998014f..0000000 --- a/cmd/agent/agent_linux.go +++ /dev/null @@ -1,12 +0,0 @@ -package main - -import ( - "os" - "syscall" - "unsafe" -) - -func setWinsize(f *os.File, w, h int) { - syscall.Syscall(syscall.SYS_IOCTL, f.Fd(), uintptr(syscall.TIOCSWINSZ), - uintptr(unsafe.Pointer(&struct{ h, w, x, y uint16 }{uint16(h), uint16(w), 0, 0}))) -} diff --git a/cmd/agent/agent_windows.go b/cmd/agent/agent_windows.go deleted file mode 100755 index 8120a10..0000000 --- a/cmd/agent/agent_windows.go +++ /dev/null @@ -1,7 +0,0 @@ -package main - -import "os" - -func setWinsize(f *os.File, w, h int) { - // Empty -}