summaryrefslogtreecommitdiff
path: root/am/guilec
diff options
context:
space:
mode:
Diffstat (limited to 'am/guilec')
-rw-r--r--am/guilec33
1 files changed, 33 insertions, 0 deletions
diff --git a/am/guilec b/am/guilec
new file mode 100644
index 000000000..ce0711b74
--- /dev/null
+++ b/am/guilec
@@ -0,0 +1,33 @@
+# -*- makefile -*-
+GOBJECTS = $(SOURCES:%.scm=%.go)
+
+moddir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)/$(modpath)
+nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
+ccachedir = $(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/ccache/$(modpath)
+nobase_ccache_DATA = $(GOBJECTS)
+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 "$@" "$<"