mirror of
https://github.com/nlohmann/json.git
synced 2024-08-23 05:22:28 +02:00
32 lines
792 B
Makefile
32 lines
792 B
Makefile
# serve the site locally
|
|
serve: prepare_files
|
|
venv/bin/mkdocs serve
|
|
|
|
# create files that are not versioned inside the mkdocs folder
|
|
prepare_files: clean
|
|
# build Doxygen
|
|
$(MAKE) -C ..
|
|
# create subfolders
|
|
mkdir docs/images docs/examples
|
|
# copy images
|
|
cp -vr ../json.gif ../images/range-begin-end.svg ../images/range-rbegin-rend.svg docs/images
|
|
# copy examples
|
|
cp -vr ../examples/*.cpp ../examples/*.output docs/examples
|
|
|
|
# clean subfolders
|
|
clean:
|
|
rm -fr docs/images docs/examples
|
|
|
|
# publish site to GitHub pages
|
|
publish: prepare_files
|
|
venv/bin/mkdocs gh-deploy --clean --force
|
|
|
|
# install a Python virtual environment
|
|
install_venv: requirements.txt
|
|
python3 -mvenv venv
|
|
venv/bin/pip install -r requirements.txt
|
|
|
|
# uninstall the virtual environment
|
|
uninstall_venv: clean
|
|
rm -fr venv
|