2023-07-30 17:36:51 +03:00
|
|
|
.PHONY: external-api-html
|
|
|
|
|
2023-12-15 01:26:45 +02:00
|
|
|
ifeq ($(external_api_docs), yes)
|
2023-07-30 17:36:51 +03:00
|
|
|
|
|
|
|
$(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 -
|
|
|
|
|
2023-12-15 01:26:45 +02:00
|
|
|
# Generate the HTML API docs for Nix's unstable external interfaces.
|
2023-07-30 17:36:51 +03:00
|
|
|
external-api-html: $(docdir)/external-api/html/index.html
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
# Make a nicer error message
|
|
|
|
external-api-html:
|
2023-12-15 01:26:45 +02:00
|
|
|
@echo "External API docs are disabled. Configure with '--enable-external-api-docs', or avoid calling 'make external-api-html'."
|
2023-07-30 17:36:51 +03:00
|
|
|
@exit 1
|
|
|
|
|
|
|
|
endif
|