summaryrefslogtreecommitdiff
path: root/guile
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-09-15 23:32:57 +0200
committerLudovic Courtès <ludo@gnu.org>2013-09-15 23:33:21 +0200
commit233735083b79f8d25665b4362ae56d95a010f5fb (patch)
tree7084581937a3a9832167742ad9da5da31a572d1e /guile
parent0d34b03f0e5e5eac5e04c795cce2655b52b7cfc9 (diff)
downloadgnutls-233735083b79f8d25665b4362ae56d95a010f5fb.tar.gz
guile: Use intermediary files when generating code.
Diffstat (limited to 'guile')
-rw-r--r--guile/src/Makefile.am15
1 files changed, 10 insertions, 5 deletions
diff --git a/guile/src/Makefile.am b/guile/src/Makefile.am
index 28c924f556..40ff26559e 100644
--- a/guile/src/Makefile.am
+++ b/guile/src/Makefile.am
@@ -80,19 +80,24 @@ endif HAVE_GCC
enums.h: $(srcdir)/make-enum-header.scm
- $(GUILE_FOR_BUILD) $^ > $@
+ $(GUILE_FOR_BUILD) "$^" > "$@.tmp"
+ mv "$@.tmp" "$@"
enum-map.i.c: $(srcdir)/make-enum-map.scm
- $(GUILE_FOR_BUILD) $^ > $@
+ $(GUILE_FOR_BUILD) "$^" > "$@.tmp"
+ mv "$@.tmp" "$@"
smobs.h: $(srcdir)/make-smob-header.scm
- $(GUILE_FOR_BUILD) $^ > $@
+ $(GUILE_FOR_BUILD) "$^" > "$@.tmp"
+ mv "$@.tmp" "$@"
smob-types.i.c: $(srcdir)/make-smob-types.scm
- $(GUILE_FOR_BUILD) $^ > $@
+ $(GUILE_FOR_BUILD) "$^" > "$@.tmp"
+ mv "$@.tmp" "$@"
priorities.i.c: $(srcdir)/make-session-priorities.scm
- $(GUILE_FOR_BUILD) $^ > $@
+ $(GUILE_FOR_BUILD) "$^" > "$@.tmp"
+ mv "$@.tmp" "$@"
# C file snarfing.