diff --git a/gotime/Makefile b/gotime/Makefile index fb8cdfd..0df5341 100644 --- a/gotime/Makefile +++ b/gotime/Makefile @@ -1,16 +1,23 @@ PACKAGES := $(foreach pkg,\ - $(shell ls src/gotour.meatballhat.com),\ - $(patsubst %,gotour.meatballhat.com/%,$(pkg))\ + $(shell ls src/meatballhat.com/gotour-artifacts),\ + $(patsubst %,meatballhat.com/gotour-artifacts/%,$(pkg))\ ) all: go install $(PACKAGES) +fmt: + go fmt $(PACKAGES) + clean: rm -v bin/* +publish: + rsync -avz src/meatballhat.com/gotour-artifacts mbh:meatballhat.com/docroot/ + ssh mbh "find meatballhat.com/docroot/gotour-artifacts -type d -exec chmod 755 {} \; && find meatballhat.com/docroot/gotour-artifacts/ -type f -exec chmod 644 {} \;" + env: @echo GOPATH=$(GOPATH) @echo PACKAGES=$(PACKAGES) -.PHONY: all clean +.PHONY: all clean publish env fmt diff --git a/gotime/src/gotour.meatballhat.com/channels/main.go b/gotime/src/meatballhat.com/gotour-artifacts/channels/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/channels/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/channels/main.go diff --git a/gotime/src/gotour.meatballhat.com/exercise-fibonacci-closure/main.go b/gotime/src/meatballhat.com/gotour-artifacts/exercise-fibonacci-closure/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/exercise-fibonacci-closure/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/exercise-fibonacci-closure/main.go diff --git a/gotime/src/gotour.meatballhat.com/exercise-http-handlers/main.go b/gotime/src/meatballhat.com/gotour-artifacts/exercise-http-handlers/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/exercise-http-handlers/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/exercise-http-handlers/main.go diff --git a/gotime/src/gotour.meatballhat.com/exercise-maps/main.go b/gotime/src/meatballhat.com/gotour-artifacts/exercise-maps/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/exercise-maps/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/exercise-maps/main.go diff --git a/gotime/src/gotour.meatballhat.com/exercise-slices/main.go b/gotime/src/meatballhat.com/gotour-artifacts/exercise-slices/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/exercise-slices/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/exercise-slices/main.go diff --git a/gotime/src/gotour.meatballhat.com/exercise-sqrt/main.go b/gotime/src/meatballhat.com/gotour-artifacts/exercise-sqrt/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/exercise-sqrt/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/exercise-sqrt/main.go diff --git a/gotime/src/gotour.meatballhat.com/goroutines/main.go b/gotime/src/meatballhat.com/gotour-artifacts/goroutines/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/goroutines/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/goroutines/main.go diff --git a/gotime/src/gotour.meatballhat.com/hello-web/main.go b/gotime/src/meatballhat.com/gotour-artifacts/hello-web/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/hello-web/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/hello-web/main.go diff --git a/gotime/src/gotour.meatballhat.com/maps/main.go b/gotime/src/meatballhat.com/gotour-artifacts/maps/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/maps/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/maps/main.go diff --git a/gotime/src/gotour.meatballhat.com/ranges/main.go b/gotime/src/meatballhat.com/gotour-artifacts/ranges/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/ranges/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/ranges/main.go