diff options
author | Nick <nickagerace@gmail.com> | 2021-03-16 00:28:57 -0400 |
---|---|---|
committer | Nick Gerace <nickagerace@gmail.com> | 2021-03-16 00:35:12 -0400 |
commit | 9b08115b1eb8a27bd7a1b6ba5b750e5d877f7f5b (patch) | |
tree | 1260e4bfdcf0d043e4f1580567c119a345cab8e6 /Makefile | |
parent | 9305d38dc4c11141c6024869d1e24beca26b7b70 (diff) | |
download | gfold-9b08115b1eb8a27bd7a1b6ba5b750e5d877f7f5b.zip |
Add RELEASE.md in favor of Makefile
Add RELEASE.md in favor of Makefile. Remove Makefile for cross-platform
development. Remove year and name from LICENSE for maintenance. Condense
installation section in README.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 51985b2..0000000 --- a/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# gfold -# https://nickgerace.dev -# -# Note: this Makefile is not required to work with this repository. -# It is an optional helper. - -MAKEPATH:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) -NAME:=gfold -VERSION:=0.9.0 - -all: build - -build: pre-build - cd $(MAKEPATH); cargo build - -build-release: pre-build doc - cd $(MAKEPATH); cargo build --release - -pre-build: - cd $(MAKEPATH); cargo update - cd $(MAKEPATH); cargo fmt - cd $(MAKEPATH); cargo clippy - cd $(MAKEPATH); cargo test -- --nocapture - -debug: - cd $(MAKEPATH); cargo run -- .. --debug - -doc: - cd $(MAKEPATH); cargo doc --open - -tag-release: - cd $(MAKEPATH); git tag $(VERSION) - cd $(MAKEPATH); git push --tags origin main - cd $(MAKEPATH); cargo publish - -fixme: - @cd $(MAKEPATH); grep -r \ - --exclude-dir={target,.git} \ - --exclude=Cargo.lock \ - --exclude=CHANGELOG.md \ - --exclude=Makefile \ - --color=always \ - FIXME $(MAKEPATH) - -release: - @printf "[1] Change version at the following locations...\n" - @printf " Makefile:\n $(shell grep $(VERSION) $(MAKEPATH)/Makefile)\n" - @printf " CHANGELOG.md:\n $(shell grep $(VERSION) $(MAKEPATH)/CHANGELOG.md)\n" - @printf " Cargo.toml:\n $(shell grep $(VERSION) $(MAKEPATH)/Cargo.toml)\n" - @printf "[2] Uncomment the unreleased string in CHANGELOG.md...\n" - @printf " <!--The latest version contains all changes.-->\n" - @printf "[3] Then, run the following command...\n" - @printf " time make build-release\n" - @printf "[4] Create a commit with the following message...\n" - @printf " Update to x.x.x\n" - @printf " Update to x.x.x and change all relevant files with the new semver.\n" - @printf "[5] Before merging, ensure that publishing works.\n" - @printf " cargo publish --dry-run\n" - -post-release: - @printf "[1] Run the following command...\n" - @printf " time make tag-release\n" - @printf "[2] Edit the GitHub release page for the new release.\n" - @printf "[3] Check crates.io: https://crates.io/crates/gfold\n" - @printf "[4] Update Homebrew tap version: https://github.com/nickgerace/homebrew-gfold\n" - |