This changes the output file to a header file instead of a C file, this helps meson deal
better with dependencies on custom_targets.
It is technically an #included header file so it makes sense.
The ideal solution would be to keep it as a C file, and add forward declarations of the
arrays defined in it instead of verbatim #include'ing it. However, array forward decls are
not possible without a specified size which cannot be provided in advance and declaring
them as pointers is perhaps not the best idea.
doc/wiki/Makefile.am
src/anvil/anvil
src/auth/auth
-src/lib-settings/settings-history-core.c
+src/lib-settings/settings-history-core.h
src/config/all-settings.c
src/config/config
src/config/doveconf
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
-BUILT_SOURCES = settings-history-core.c
+BUILT_SOURCES = settings-history-core.h
-settings-history.c: settings-history-core.c
+settings-history.c: settings-history-core.h
-settings-history-core.c: $(srcdir)/settings-history-core.txt $(srcdir)/settings-history.py
+settings-history-core.h: $(srcdir)/settings-history-core.txt $(srcdir)/settings-history.py
$(AM_V_GEN)$(srcdir)/settings-history.py --pro $(DOVECOT_PRO_BUILD) $< $@
EXTRA_DIST = \
#include "array.h"
#include "settings-history.h"
-#include "settings-history-core.c"
+#include "settings-history-core.h"
static struct settings_history history;