1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

C API: fix documentation build

This commit is contained in:
José Luis Lafuente 2023-12-15 00:26:45 +01:00 committed by José Luis Lafuente
parent 41f1669dea
commit 55601963b3
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
3 changed files with 22 additions and 7 deletions

View file

@ -1,19 +1,19 @@
.PHONY: external-api-html
ifeq ($(internal_api_docs), yes)
ifeq ($(external_api_docs), yes)
$(docdir)/external-api/html/index.html $(docdir)/external-api/latex: $(d)/doxygen.cfg
mkdir -p $(docdir)/external-api
{ cat $< ; echo "OUTPUT_DIRECTORY=$(docdir)/external-api" ; } | doxygen -
# Generate the HTML API docs for Nix's unstable internal interfaces.
# Generate the HTML API docs for Nix's unstable external interfaces.
external-api-html: $(docdir)/external-api/html/index.html
else
# Make a nicer error message
external-api-html:
@echo "Internal API docs are disabled. Configure with '--enable-external-api-docs', or avoid calling 'make external-api-html'."
@echo "External API docs are disabled. Configure with '--enable-external-api-docs', or avoid calling 'make external-api-html'."
@exit 1
endif