From 4d055374d90393f9fd325a7b8a1f1053619c70de Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 4 May 2022 00:39:58 +0100 Subject: [PATCH] Add Makefile command for generating documentation --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ff5e58a4..4b1fc7b6 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,10 @@ default: @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 +.PHONY: docs +docs: + cargo doc --open --no-deps --package surrealdb + .PHONY: test test: cargo test --workspace