From d40627874c8b11da86b51d3d9ce7f409815c2c1a Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 12 Aug 2014 19:27:08 -0600 Subject: [PATCH] Restructure for Go --- Makefile | 13 +++++++------ wirc.cgi.go => src/wirc.cgi/wirc.cgi.go | 0 wirc.go => src/wirc/wirc.go | 0 3 files changed, 7 insertions(+), 6 deletions(-) rename wirc.cgi.go => src/wirc.cgi/wirc.cgi.go (100%) rename wirc.go => src/wirc/wirc.go (100%) diff --git a/Makefile b/Makefile index 60b62a3..9072141 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ -all: irc.cgi irc +all: wirc.cgi wirc -%: %.go - go build $< +export GOPATH = $(CURDIR) -irc.cgi: irc.cgi.go - go build irc.cgi.go - chmod +s irc.cgi +%: + go build $@ + +wirc.cgi: + go build $@ diff --git a/wirc.cgi.go b/src/wirc.cgi/wirc.cgi.go similarity index 100% rename from wirc.cgi.go rename to src/wirc.cgi/wirc.cgi.go diff --git a/wirc.go b/src/wirc/wirc.go similarity index 100% rename from wirc.go rename to src/wirc/wirc.go