dnote/Makefile
Sung Won Cho 19d383ac90
Sync across multiple machine (#51)
* Write migrations

* Use custom context

* Write test and run CI

* Save actions

* Implement reducer

* Supply api endpoint during build

* Remove uuid for book and use name instead

* Make bookmark id not timestamp

* Use book_name

* Fix migration to get sync to work
2018-01-06 17:53:07 +11:00

21 lines
590 B
Makefile

release:
@echo "** Releasing version $(VERSION)..."
@echo "** Building..."
@$(MAKE) build
@echo "** Tagging and pushing..."
@git tag -a $(VERSION) -m "$(VERSION)"
@git push --tags
.PHONY: release
build: install-gox
@$(GOPATH)/bin/gox -ldflags "-X main.apiEndpoint=https://api.dnote.io" -osarch="darwin/386 darwin/amd64 linux/386 linux/amd64 openbsd/386 openbsd/amd64 window/386 windows/amd64" -output="dnote-{{.OS}}-{{.Arch}}" ./...
.PHONY: build
install-gox:
@echo "** Installing Gox..."
@go get github.com/mitchellh/gox
.PHONY: install-gox
clean:
@git clean -f
.PHONY: clean