New rule "install_docs" to build the documentation.

This commit is contained in:
Jean-Paul Chaput 2023-11-21 16:22:17 +01:00
parent 8159ebde1d
commit b17222e049
1 changed files with 12 additions and 2 deletions

View File

@ -63,9 +63,12 @@ $(CORIOLIS_SRC)/.pdm-plugins/bin/pdm: $(HOME)/.local/bin/pdm
@$(localpath) pdm install --no-self -d --plugins
install: check_dir $(CORIOLIS_SRC)/.pdm-plugins/bin/pdm
configure:
@$(localpath) pdm run meson setup ${BUILDDIR} --prefix=$(PREFIX) -Dpython.install_env=prefix
@$(localpath) pdm run ninja -C $(BUILDDIR) install
install: check_dir $(CORIOLIS_SRC)/.pdm-plugins/bin/pdm configure
@$(localpath) pdm run meson install -C $(BUILDDIR)
@echo ""; \
echo "============================================================================"; \
echo "Coriolis has been successfully built"; \
@ -75,6 +78,13 @@ install: check_dir $(CORIOLIS_SRC)/.pdm-plugins/bin/pdm
echo "============================================================================";
install_docs: check_dir $(CORIOLIS_SRC)/.pdm-plugins/bin/pdm configure
@$(localpath) pdm run meson configure ${BUILDDIR} --prefix=$(PREFIX) \
-Donly-docs=true \
-Ddocs=true
@$(localpath) pdm run meson install -C $(BUILDDIR)
install_alliance:
export ALLIANCE_TOP=$(PREFIX); \
export LD_LIBRARY_PATH=$(PREFIX)/lib:$(LD_LIBRARY_PATH); \