mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 20:45:32 +00:00
build/autotools: depend "config-extra.h" on "config.h"
"config-extra.h" is really just like "config.h", except it works around some limitations of autoconf. If we depend on "Makefile", any changes to "Makefile.am" will cause a full rebuild. We want to avoid that. Instead, depend on "config.h". That one only changes when configure runs again. And that's the better dependancy, because "config-extra.h" is generated based on informations generated by configure (despite being generated by "Makefile").
This commit is contained in:
parent
7ed1fc817f
commit
721f238946
|
@ -109,7 +109,7 @@ dflt_cppflags = -std=gnu11
|
|||
# See https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Installation-Directory-Variables.html
|
||||
#
|
||||
# With meson-only, they could just be set via config.h.meson
|
||||
config-extra.h: Makefile
|
||||
config-extra.h: config.h
|
||||
$(AM_V_GEN) \
|
||||
echo "/* Generated by Makefile.am */" >$@ && \
|
||||
echo "#define BINDIR \"$(bindir)\"" >>$@ && \
|
||||
|
|
Loading…
Reference in a new issue