diff --git a/docs/Makefile b/docs/Makefile index 674d77a3b..0ce2c5e49 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -11,13 +11,13 @@ EXAMPLES = $(wildcard examples/*.cpp) # create output from a stand-alone example file %.output: %.cpp - make $(<:.cpp=) CPPFLAGS="-I $(SRCDIR)" CXXFLAGS="-std=c++11" + $(MAKE) $(<:.cpp=) CPPFLAGS="-I $(SRCDIR)" CXXFLAGS="-std=c++11" ./$(<:.cpp=) > $@ rm $(<:.cpp=) # compare created output with current output of the example files %.test: %.cpp - make $(<:.cpp=) CPPFLAGS="-I $(SRCDIR)" CXXFLAGS="-std=c++11" + $(MAKE) $(<:.cpp=) CPPFLAGS="-I $(SRCDIR)" CXXFLAGS="-std=c++11" ./$(<:.cpp=) > $@ diff $@ $(<:.cpp=.output) rm $(<:.cpp=) $@ @@ -29,7 +29,7 @@ create_output: $(EXAMPLES:.cpp=.output) check_output: $(EXAMPLES:.cpp=.test) # check output of all stand-alone example files (exclude meta which is dependent on the current compiler) -check_output_portable: $(filter-out examples/meta.test,$(EXAMPLES:.cpp=.test)) +check_output_portable: $(filter-out examples/meta.test examples/max_size.test examples/std_hash.test,$(EXAMPLES:.cpp=.test)) clean: rm -fr $(EXAMPLES:.cpp=) diff --git a/docs/examples/patch_inplace.cpp b/docs/examples/patch_inplace.cpp index 62bc527d8..2224b7061 100644 --- a/docs/examples/patch_inplace.cpp +++ b/docs/examples/patch_inplace.cpp @@ -30,5 +30,5 @@ int main() doc.patch_inplace(patch); // output patched document - std::cout << "After\n" << std::setw(4) << doc << std::endl; + std::cout << "\nAfter\n" << std::setw(4) << doc << std::endl; }