From f227ceae35195293d5da19ad1b7c38f4746f007c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 24 Sep 2019 15:00:36 +0200 Subject: [PATCH] autodoc target example --- README.md | 2 +- .../automatic directory listing/a directory in space/Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d91246d..14cc6e3 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ However, Makefiles must contain a SRCPAT annotation comment as follows, where `< If there are multiple SRCPAT annotations, the lowermost one will be used. -You *may* add a PHONY target "autodoc" which will be built *instead* of the default target. +You *may* add a PHONY target "autodoc" which will be built *instead* of the default target. This is demonstrated in [examples/automatic directory listing/a directory in space/Makefile](https://github.com/ldericher/autodoc/blob/develop/examples/automatic%20directory%20listing/a%20directory%20in%20space/Makefile). ```Makefile .PHONY: autodoc diff --git a/examples/automatic directory listing/a directory in space/Makefile b/examples/automatic directory listing/a directory in space/Makefile index b358204..c655049 100644 --- a/examples/automatic directory listing/a directory in space/Makefile +++ b/examples/automatic directory listing/a directory in space/Makefile @@ -3,3 +3,7 @@ .PHONY: all all: @echo "Hello World!" + +.PHONY: autodoc +autodoc: + @echo "Hello autodoc!"