blob: 257181eec92eba9d58dc6357fdc5ad25dd547c29 [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útib7246ad2020-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
26scripts/config.pl realfull
27make apidoc
28
29mv $CONFIG_BAK $CONFIG_H