summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile44
-rw-r--r--src/rhimportd/ctrlTelnet.go (renamed from src/helsinki.at/rhimportd/ctrlTelnet.go)0
-rw-r--r--src/rhimportd/ctrlWatchDir.go (renamed from src/helsinki.at/rhimportd/ctrlWatchDir.go)0
-rw-r--r--src/rhimportd/ctrlWeb.go (renamed from src/helsinki.at/rhimportd/ctrlWeb.go)0
-rw-r--r--src/rhimportd/ctrlWebSimple.go (renamed from src/helsinki.at/rhimportd/ctrlWebSimple.go)0
-rw-r--r--src/rhimportd/ctrlWebSocket.go (renamed from src/helsinki.at/rhimportd/ctrlWebSocket.go)0
-rw-r--r--src/rhimportd/main.go (renamed from src/helsinki.at/rhimportd/main.go)0
7 files changed, 26 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index 3adf0cd..0325c7c 100644
--- a/Makefile
+++ b/Makefile
@@ -23,39 +23,47 @@
##
curdir:= $(shell pwd)
-GOCMD := go
+GOCMD := GOPATH=$(curdir) go
+
+EXECUTEABLE := rhimportd
+
+LIBS := "github.com/vaughan0/go-ini" \
+ "github.com/ziutek/mymysql/godrv" \
+ "github.com/andelf/go-curl" \
+ "github.com/spreadspace/telgo" \
+ "github.com/gorilla/websocket"
+
+all: build test
-getlibs: export GOPATH=$(curdir)
getlibs:
- $(GOCMD) get "github.com/vaughan0/go-ini"
- $(GOCMD) get "github.com/ziutek/mymysql/godrv"
- $(GOCMD) get "github.com/andelf/go-curl"
- $(GOCMD) get "github.com/spreadspace/telgo"
- $(GOCMD) get "github.com/gorilla/websocket"
+ @$(foreach lib,$(LIBS), echo "fetching lib: $(lib)"; $(GOCMD) get $(lib);)
+
+updatelibs:
+ @$(foreach lib,$(LIBS), echo "updating lib: $(lib)"; $(GOCMD) get -u $(lib);)
-vet: export GOPATH=$(curdir)
vet:
- $(GOCMD) vet helsinki.at/rhimportd
- $(GOCMD) vet helsinki.at/rhimport
+ @echo "vetting: $(EXECUTEABLE)"
+ @$(GOCMD) vet $(EXECUTEABLE)
+ @echo "vetting: helsinki.at/rhimport"
+ @$(GOCMD) vet helsinki.at/rhimport
-format: export GOPATH=$(curdir)
format:
- $(GOCMD) fmt helsinki.at/rhimportd
- $(GOCMD) fmt helsinki.at/rhimport
+ @echo "formating: $(EXECUTEABLE)"
+ @$(GOCMD) fmt $(EXECUTEABLE)
+ @echo "formating: helsinki.at/rhimport"
+ @$(GOCMD) fmt helsinki.at/rhimport
-build: export GOPATH=$(curdir)
build: getlibs
- $(GOCMD) install helsinki.at/rhimportd
+ @echo "installing: $(EXECUTEABLE)"
+ @$(GOCMD) install $(EXECUTEABLE)
clean:
rm -rf pkg/*/helsinki.at
+ rm -rf pkg/*/$(EXECUTEABLE)
rm -rf bin
distclean: clean
rm -rf src/github.com
rm -rf pkg
-all: build test
-
.PHONY: getlibs build test clean distclean _setenv
-.DEFAULT_GOAL = all
diff --git a/src/helsinki.at/rhimportd/ctrlTelnet.go b/src/rhimportd/ctrlTelnet.go
index 5d0aebe..5d0aebe 100644
--- a/src/helsinki.at/rhimportd/ctrlTelnet.go
+++ b/src/rhimportd/ctrlTelnet.go
diff --git a/src/helsinki.at/rhimportd/ctrlWatchDir.go b/src/rhimportd/ctrlWatchDir.go
index 6f84c15..6f84c15 100644
--- a/src/helsinki.at/rhimportd/ctrlWatchDir.go
+++ b/src/rhimportd/ctrlWatchDir.go
diff --git a/src/helsinki.at/rhimportd/ctrlWeb.go b/src/rhimportd/ctrlWeb.go
index c1cd4b5..c1cd4b5 100644
--- a/src/helsinki.at/rhimportd/ctrlWeb.go
+++ b/src/rhimportd/ctrlWeb.go
diff --git a/src/helsinki.at/rhimportd/ctrlWebSimple.go b/src/rhimportd/ctrlWebSimple.go
index cd2c556..cd2c556 100644
--- a/src/helsinki.at/rhimportd/ctrlWebSimple.go
+++ b/src/rhimportd/ctrlWebSimple.go
diff --git a/src/helsinki.at/rhimportd/ctrlWebSocket.go b/src/rhimportd/ctrlWebSocket.go
index a0386f1..a0386f1 100644
--- a/src/helsinki.at/rhimportd/ctrlWebSocket.go
+++ b/src/rhimportd/ctrlWebSocket.go
diff --git a/src/helsinki.at/rhimportd/main.go b/src/rhimportd/main.go
index d941b05..d941b05 100644
--- a/src/helsinki.at/rhimportd/main.go
+++ b/src/rhimportd/main.go