Manuel Pégourié-Gonnard | d091ed1 | 2016-01-12 14:17:52 +0000 | [diff] [blame] | 1 | #!/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úti | 700ee44 | 2020-05-26 00:33:31 +0200 | [diff] [blame^] | 9 | # |
| 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é-Gonnard | d091ed1 | 2016-01-12 14:17:52 +0000 | [diff] [blame] | 13 | |
| 14 | set -eu |
| 15 | |
| 16 | CONFIG_H='include/mbedtls/config.h' |
| 17 | |
| 18 | if [ -r $CONFIG_H ]; then :; else |
| 19 | echo "$CONFIG_H not found" >&2 |
| 20 | exit 1 |
| 21 | fi |
| 22 | |
| 23 | CONFIG_BAK=${CONFIG_H}.bak |
| 24 | cp -p $CONFIG_H $CONFIG_BAK |
| 25 | |
Gilles Peskine | 5d46f6a | 2019-07-27 23:52:53 +0200 | [diff] [blame] | 26 | scripts/config.py realfull |
Manuel Pégourié-Gonnard | d091ed1 | 2016-01-12 14:17:52 +0000 | [diff] [blame] | 27 | make apidoc |
| 28 | |
| 29 | mv $CONFIG_BAK $CONFIG_H |