Commit 1cb180de authored by Jeena Huneidi's avatar Jeena Huneidi Committed by Addshore
Browse files

Remove generated files from repo

Generates files at build time in order to avoid storing packaged files
in the repo.

Change-Id: If1bfc12c04ac0f036870a7b7859ff9e9b6999c3f
parent 5aa3c5f9
......@@ -4,4 +4,5 @@
\ No newline at end of file
......@@ -17,7 +17,7 @@ GO_LDFLAGS := \
GO_BUILD := go build -v -ldflags "$(GO_LDFLAGS)" -o bin/mw
GO_INSTALL := go install -v -ldflags "$(GO_LDFLAGS)"
all: code mw-cli
all: code internal/mwdd/files/files.go mw-cli
$(GO_BUILD) ./cmd/cli
......@@ -29,6 +29,7 @@ clean:
go clean $(GO_PACKAGES)
rm -f bin/mw || true
rm -rf _releases || true
rm internal/mwdd/files/files.go || true
install: all
......@@ -52,10 +53,11 @@ lint:
go test -cover -ldflags "$(GO_LDFLAGS)" $(GO_PACKAGES)
test: unit lint
test: internal/mwdd/files/files.go unit lint
internal/mwdd/files/files.go: static/mwdd/*
rm internal/mwdd/files/files.go
go get
rm -f internal/mwdd/files/files.go
staticfiles -o internal/mwdd/files/files.go static/mwdd/
.PHONY: install release
......@@ -43,14 +43,6 @@ No naming structured is enforced in CI but a convention exists that should be fo
- Complex sub commands will be split out into their own file. For example `docker_env.go`.
- This is a recursive solution.
### Updating included static files
Static files are included in the binary using <>
You can install the staticfiles command with `go get`
In order to update files.go you can run `make internal/mwdd/files/files.go`
### Using a binary
Make a binary by running `make install`
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment