-
-
Save NichtJens/56b23ae3236672e8ef2e5c6c4d97c9c2 to your computer and use it in GitHub Desktop.
Drop-in makefile for Cargo projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CARGO = cargo | |
all: build doc | |
build: | |
@$(CARGO) build | |
doc: | |
@$(CARGO) doc | |
check: build test | |
test: | |
@$(CARGO) test | |
bench: | |
@$(CARGO) bench | |
clean: | |
@$(CARGO) clean | |
.PHONY: all build doc check test bench clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shortened compared to the original:
*calls have the forms
where only the first is relevant here, which does not allow
[options]
in front of<command>
.