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. 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 22scripts/config.pl realfull 23make apidoc 24 25mv $CONFIG_BAK $CONFIG_H 26