diff --git a/README.md b/README.md index 888aa97..5a43537 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ You may combine build instruction systems to your liking. However, Makefiles must contain a SRCPAT annotation comment as follows, where `` is a source pattern as above. ```Makefile -#@SRCPAT +#%SRCPAT% ``` If there are multiple SRCPAT annotations, the lowermost one will be used. diff --git a/build/autodoc.sh b/build/autodoc.sh index 312e036..e199e5a 100755 --- a/build/autodoc.sh +++ b/build/autodoc.sh @@ -11,10 +11,10 @@ do_make() { # $1:DIR $2:MAKEFILE $3:OBJECT local object="$3" # check Makefile 'source pattern' - local srcpat="$(grep -E "^#@SRCPAT" "${dir}/${makefile}" | tail -n 1 | sed -r "s/^#@SRCPAT\s+//")" + local srcpat="$(grep -E "^#%SRCPAT%" "${dir}/${makefile}" | tail -n 1 | sed -r "s/^#%SRCPAT%\s+//")" if [ -z "${srcpat}" ]; then - echo -n "Empty source pattern, check '#@SRCPAT' annotation! " + echo -n "Empty source pattern, check '#%SRCPAT%' annotation! " return 1 elif [[ "${object}" =~ ${srcpat} ]]; then diff --git a/example_docs/simple md/Makefile b/example_docs/simple md/Makefile index 5042f01..6902e49 100644 --- a/example_docs/simple md/Makefile +++ b/example_docs/simple md/Makefile @@ -1,4 +1,4 @@ -#@SRCPAT \.md$ +#%SRCPAT% \.md$ .PHONY: all all: simple.pdf simple.html diff --git a/example_docs/somedir/Makefile b/example_docs/somedir/Makefile index 52668e7..a7b1d27 100644 --- a/example_docs/somedir/Makefile +++ b/example_docs/somedir/Makefile @@ -1,4 +1,4 @@ -#@SRCPAT (file|\.tex)$ +#%SRCPAT% (file|\.tex)$ .PHONY: all all: files.txt diff --git a/example_docs/somedir/a directory in space/Makefile b/example_docs/somedir/a directory in space/Makefile index e435afe..b358204 100644 --- a/example_docs/somedir/a directory in space/Makefile +++ b/example_docs/somedir/a directory in space/Makefile @@ -1,4 +1,4 @@ -#@SRCPAT .* +#%SRCPAT% .* .PHONY: all all: