summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-06-17 12:56:35 +0200
committerThomas Haller <thaller@redhat.com>2019-06-17 13:00:37 +0200
commit721f238946efd26ca04335633dac34353c9d44e9 (patch)
tree41f36fd655f8ff2c1004772c1751104cc507010e
parent7ed1fc817f8d41798c7a49894f45683fa69fec8d (diff)
downloadNetworkManager-721f238946efd26ca04335633dac34353c9d44e9.tar.gz
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").
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 3cd73fc05a..7501765364 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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)\"" >>$@ && \