blob: dfe117710bd9ce1db2d8126dcb11934444541d0b [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.
9
10set -eu
11
12CONFIG_H='include/mbedtls/config.h'
13
14if [ -r $CONFIG_H ]; then :; else
15 echo "$CONFIG_H not found" >&2
16 exit 1
17fi
18
19CONFIG_BAK=${CONFIG_H}.bak
20cp -p $CONFIG_H $CONFIG_BAK
21
Gilles Peskine5d46f6a2019-07-27 23:52:53 +020022scripts/config.py realfull
Manuel Pégourié-Gonnardd091ed12016-01-12 14:17:52 +000023make apidoc
24
25mv $CONFIG_BAK $CONFIG_H