dir_guard=@mkdir -p $(@D) all: ovly ovly: ovly.go go build $^ put: build/ovly.linux_amd64 build/ovly.linux_amd64: ovly.go $(dir_guard) GOOS=linux GOARCH=amd64 go build -o build/ovly.linux_amd64 ovly.go scp $@ xuj.local:/usr/local/bin/ovly