blob: 8180b0e5f4303240da24446d94cad5cb6d7bbab9 [file] [log] [blame]
Manuel Pégourié-Gonnardd091ed12016-01-12 14:17:52 +00001#!/bin/sh
2
3# Generate doxygen documentation with a full config.h (this ensures that every
4# available flag is documented, and avoids warnings about documentation
5# without a corresponding #define).
6#
7# /!\ This must not be a Makefile target, as it would create a race condition
8# when multiple targets are invoked in the same parallel build.
Bence Szépkúti700ee442020-05-26 00:33:31 +02009#
Bence Szépkúti1e148272020-08-07 13:07:28 +020010# Copyright The Mbed TLS Contributors
Dave Rodgman7ff79652023-11-03 12:04:52 +000011# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
Manuel Pégourié-Gonnardd091ed12016-01-12 14:17:52 +000012
13set -eu
14
15CONFIG_H='include/mbedtls/config.h'
16
17if [ -r $CONFIG_H ]; then :; else
18 echo "$CONFIG_H not found" >&2
19 exit 1
20fi
21
22CONFIG_BAK=${CONFIG_H}.bak
23cp -p $CONFIG_H $CONFIG_BAK
24
Gilles Peskine5d46f6a2019-07-27 23:52:53 +020025scripts/config.py realfull
Manuel Pégourié-Gonnardd091ed12016-01-12 14:17:52 +000026make apidoc
27
28mv $CONFIG_BAK $CONFIG_H