WIP: remove version.go rules from makefile
@@ -16,22 +16,19 @@ DEB_SIGN ?= 1
.PHONY: dev generate lint static test build-mock-images sources rpm srpm
-dev: ecs-init/version/version.go
+dev:
./scripts/gobuild.sh dev
generate:
PATH=$(PATH):$(shell pwd)/scripts go generate -v ./...
-ecs-init/version/version.go:
- ./scripts/update-version.sh
-
lint:
./scripts/lint.sh
-static: ecs-init/version/version.go
+static:
./scripts/gobuild.sh
-gotest: ecs-init/version/version.go
+gotest:
GOPATH="$(shell pwd)/ecs-init/Godeps/_workspace:$(GOPATH)" go test -short -v -cover ./...
test: generate lint gotest
@@ -45,8 +42,7 @@ build-mock-images:
docker build -t "test.localhost/amazon/wants-update" -f "scripts/dockerfiles/wants-update.dockerfile" .
docker build -t "test.localhost/amazon/exit-success" -f "scripts/dockerfiles/exit-success.dockerfile" .
-sources.tgz: ecs-init/version/version.go
- ./scripts/update-version.sh
+sources.tgz:
cp packaging/amazon-linux-ami/ecs-init.spec ecs-init.spec
cp packaging/amazon-linux-ami/ecs.conf ecs.conf
tar -czf ./sources.tgz ecs-init scripts
@@ -97,4 +93,3 @@ clean:
-rm ./x86_64 -r
-rm ./amazon-ecs-init_${VERSION}*
-rm .srpm-done .rpm-done
- -rm ecs-init/version/version.go
