Skip to content

Commit

Permalink
Improve shortcut makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
PrincessRTFM committed May 25, 2023
1 parent 8cfa1d7 commit 8e38386
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
build: debug release
build: restore debug release ## Compile for both debug and release builds

debug:
dotnet.exe restore -r win
dotnet.exe build --no-restore -c Debug

release:
dotnet.exe restore -r win
release: restore ## Compile a release build
dotnet.exe build --no-restore -c Release

commit: build
git add --all
git commit
debug: restore ## Compile a debug build
dotnet.exe build --no-restore -c Debug

push: commit
git push
restore: ## Restore and verify nuget packages, dependencies, and tools in preparation for a build
dotnet.exe restore -r win

.PHONY: build debug release commit push
# Follow any target line with two hashes and the description/helpline and `make help` will autogenerate for them
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'

.PHONY: restore debug release build help

0 comments on commit 8e38386

Please sign in to comment.