proxmox/Makefile
Wolfgang Bumiller ac45b7cea6 run 'cargo fmt -- --check' in check target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-11-25 15:08:53 +01:00

40 lines
657 B
Makefile

# Shortcut for common operations:
# By default we just run checks:
.PHONY: all
all: check
.PHONY: check
check:
cargo fmt -- --check
cargo test
# Run the api-test server, serving the api-test/www/ subdir as 'www' dir over
# http:
.PHONY: apitest
apitest:
cargo run -p api-test -- api-test/www/
# Prints a diff between the current code and the one rustfmt would produce
.PHONY: fmt
checkfmt:
cargo fmt --all -- --check
# Reformat the code (ppply the output of `make checkfmt`)
.PHONY: fmt
fmt:
cargo fmt --all
# Doc without dependencies
.PHONY: doc
doc:
cargo doc --no-deps
.PHONY: clean
clean:
cargo clean
.PHONY: update
update:
cargo update