summaryrefslogtreecommitdiff
path: root/am
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2009-06-04 23:11:55 +0200
committerAndy Wingo <wingo@pobox.com>2009-06-04 23:11:55 +0200
commitb193d904bb9e8c1f8aa8b4a985b03aa59c4e6a21 (patch)
tree31dda185322f47bd80872033cf7592c45fe7f392 /am
parenta46b7f14afa3308f48b1f2dd5e13381138af87e9 (diff)
propagate timestamps to installed .scm and .go files
* am/guilec: Propagate timestamps of .scm and .go files on to their installed variants. Helps the is-the-.go-file-stale? code do its job.
Diffstat (limited to 'am')
-rw-r--r--am/guilec19
1 files changed, 19 insertions, 0 deletions
diff --git a/am/guilec b/am/guilec
index d081e1fbe..ce0711b74 100644
--- a/am/guilec
+++ b/am/guilec
@@ -9,6 +9,25 @@ EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
CLEANFILES = $(GOBJECTS)
+# Well, shit. We can't have install changing timestamps, can we? But
+# install_sh doesn't know how to preserve timestamps. Soooo, fondle
+# automake to make things happen.
+install-data-hook:
+ @$(am__vpath_adj_setup) \
+ list='$(nobase_mod_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ $(am__vpath_adj) \
+ echo " touch -r '$$d$$p' '$(DESTDIR)$(moddir)/$$f'"; \
+ touch -r "$$d$$p" "$(DESTDIR)$(moddir)/$$f"; \
+ done
+ @$(am__vpath_adj_setup) \
+ list='$(nobase_ccache_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ $(am__vpath_adj) \
+ echo " touch -r '$$d$$p' '$(DESTDIR)$(ccachedir)/$$f'"; \
+ touch -r "$$d$$p" "$(DESTDIR)$(ccachedir)/$$f"; \
+ done
+
SUFFIXES = .scm .go
.scm.go:
GUILE_AUTO_COMPILE=0 $(top_builddir)/meta/uninstalled-env guile-tools compile -o "$@" "$<"