Add Makefile command for generating documentation

This commit is contained in:
Tobie Morgan Hitchcock 2022-05-04 00:39:58 +01:00
parent c5960a028e
commit 4d055374d9

View file

@ -3,6 +3,10 @@ default:
@echo "Choose a Makefile target:" @echo "Choose a Makefile target:"
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print " - " $$1}}' | sort @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print " - " $$1}}' | sort
.PHONY: docs
docs:
cargo doc --open --no-deps --package surrealdb
.PHONY: test .PHONY: test
test: test:
cargo test --workspace cargo test --workspace