1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00

build: Error out when ‘scmconfig.h’ generation fails.

So far the rule would silently create a broken file.

* libguile/Makefile.am (scmconfig.h): Add ‘set -e’.
This commit is contained in:
Ludovic Courtès 2023-12-28 12:36:11 +01:00
parent 7f26021c24
commit a09214fb86
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -85,7 +85,7 @@ gen-scmconfig$(EXEEXT): $(gen_scmconfig_OBJECTS) $(gen_scmconfig_DEPENDENCIES)
fi fi
scmconfig.h: ${top_builddir}/config.h gen-scmconfig$(EXEEXT) scmconfig.h: ${top_builddir}/config.h gen-scmconfig$(EXEEXT)
$(AM_V_GEN)(rm -f scmconfig.h.tmp; \ $(AM_V_GEN)(set -e; rm -f scmconfig.h.tmp; \
cat $(srcdir)/scmconfig.h.top > scmconfig.h.tmp; \ cat $(srcdir)/scmconfig.h.top > scmconfig.h.tmp; \
./gen-scmconfig$(EXEEXT) >> scmconfig.h.tmp; \ ./gen-scmconfig$(EXEEXT) >> scmconfig.h.tmp; \
chmod 444 scmconfig.h.tmp; \ chmod 444 scmconfig.h.tmp; \