[PATCH v3 10/11] Makefile: add some simple make automations
Alex Bennée <[email protected]> Fri, 10 Oct 2025 17:28:57 +0100
| Newsgroups | dev.linux.lists.virtio-comment |
|---|---|
| Message-ID | <[email protected]> |
This is just a helpful shortcut, especially when editing the documents within an IDE which will offer up make targets to build the documents. Reviewed-by: Parav Pandit <[email protected]> Signed-off-by: Alex Bennée <[email protected]> --- v3 - rename local to draft to make intent clear - update help text --- Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f08f13c --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +# -*- Mode: makefile -*- +# +# Basic Makefile to aid automation of document building +# + +.PHONY: all draft +all: + ./makeall.sh + +draft: + ./makeall.sh draft + +.PHONY: html draft-html +html: + ./makehtml.sh + +draft-html: + ./makehtml.sh draft + +.PHONY: clean +clean: + git clean -fd + +.PHONY: help +help: + @echo "Build the VIRTIO specification documents." + @echo "" + @echo "Possible operations are:" + @echo + @echo " $(MAKE) Build everything" + @echo " $(MAKE) draft Build unofficial draft" + @echo " $(MAKE) html Build just html" + @echo " $(MAKE) draft-html Build just draft html" + @echo " $(MAKE) clean Remove all intermediate files" -- 2.47.3