11SRCDIR = ../src
2+ SED: =$(shell command -v sed || gsed)
23
34all : doxygen
45
@@ -52,10 +53,10 @@ clean:
5253# create Doxygen documentation
5354doxygen : create_output create_links
5455 doxygen
55- gsed -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberFloatType, AllocatorType >@@g' html/* .html
56- gsed -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberFloatType, AllocatorType >@@g' html/* .html
57- gsed -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >@@g' html/* .html
58- gsed -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >@@g' html/* .html
56+ $( SED ) -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberFloatType, AllocatorType >@@g' html/* .html
57+ $( SED ) -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberFloatType, AllocatorType >@@g' html/* .html
58+ $( SED ) -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >@@g' html/* .html
59+ $( SED ) -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType >@@g' html/* .html
5960
6061upload : clean doxygen check_output
6162 cd html ; ../scripts/git-update-ghpages nlohmann/json
@@ -70,14 +71,14 @@ upload: clean doxygen check_output
7071# create docset for Dash
7172docset : create_output
7273 cp Doxyfile Doxyfile_docset
73- gsed -i ' s/DISABLE_INDEX = NO/DISABLE_INDEX = YES/' Doxyfile_docset
74- gsed -i ' s/SEARCHENGINE = YES/SEARCHENGINE = NO/' Doxyfile_docset
75- gsed -i ' s@HTML_EXTRA_STYLESHEET = css/mylayout.css@HTML_EXTRA_STYLESHEET = css/mylayout_docset.css@' Doxyfile_docset
74+ $( SED ) -i ' s/DISABLE_INDEX = NO/DISABLE_INDEX = YES/' Doxyfile_docset
75+ $( SED ) -i ' s/SEARCHENGINE = YES/SEARCHENGINE = NO/' Doxyfile_docset
76+ $( SED ) -i ' s@HTML_EXTRA_STYLESHEET = css/mylayout.css@HTML_EXTRA_STYLESHEET = css/mylayout_docset.css@' Doxyfile_docset
7677 rm -fr html * .docset
7778 doxygen Doxyfile_docset
78- gsed -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberFloatType, AllocatorType >@@g' html/* .html
79- gsed -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberFloatType, AllocatorType >@@g' html/* .html
79+ $( SED ) -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberFloatType, AllocatorType >@@g' html/* .html
80+ $( SED ) -i ' s@< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberFloatType, AllocatorType >@@g' html/* .html
8081 make -C html
8182 mv html/* .docset .
82- gsed -i ' s@<string>doxygen</string>@<string>json</string>@' me.nlohmann.json.docset/Contents/Info.plist
83+ $( SED ) -i ' s@<string>doxygen</string>@<string>json</string>@' me.nlohmann.json.docset/Contents/Info.plist
8384 rm -fr Doxyfile_docset html
0 commit comments