blob: a8e48455bc4be4e6322ad88eb67f3341ec47e4d2 [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#
10# Copyright (C) 2016, Arm Limited, All Rights Reserved
11#
12# This file is part of Mbed TLS (https://tls.mbed.org)
Manuel Pégourié-Gonnardd091ed12016-01-12 14:17:52 +000013
14set -eu
15
16CONFIG_H='include/mbedtls/config.h'
17
18if [ -r $CONFIG_H ]; then :; else
19 echo "$CONFIG_H not found" >&2
20 exit 1
21fi
22
23CONFIG_BAK=${CONFIG_H}.bak
24cp -p $CONFIG_H $CONFIG_BAK
25
Gilles Peskine5d46f6a2019-07-27 23:52:53 +020026scripts/config.py realfull
Manuel Pégourié-Gonnardd091ed12016-01-12 14:17:52 +000027make apidoc
28
29mv $CONFIG_BAK $CONFIG_H