aboutsummaryrefslogtreecommitdiff
path: root/src/guile/Makefile.am
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2023-12-07 22:17:53 +0100
committerWojtek Kosior <koszko@koszko.org>2023-12-12 21:17:04 +0100
commitc1d4d5b2b0ba2220bd31b20ea02eb4ec80bdc8ac (patch)
tree891616649df89735c96900737096790cd94aff10 /src/guile/Makefile.am
downloadde-paul-records-c1d4d5b2b0ba2220bd31b20ea02eb4ec80bdc8ac.tar.gz
de-paul-records-c1d4d5b2b0ba2220bd31b20ea02eb4ec80bdc8ac.zip
Initial commit.
Diffstat (limited to 'src/guile/Makefile.am')
-rw-r--r--src/guile/Makefile.am20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/guile/Makefile.am b/src/guile/Makefile.am
new file mode 100644
index 0000000..743ce74
--- /dev/null
+++ b/src/guile/Makefile.am
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: CC0-1.0
+#
+# Copyright (C) 2023 Wojtek Kosior <koszko@koszko.org>
+
+GUILE_SOURCE_FILES = \
+ $(PACKAGE).scm
+
+GUILE_OBJECT_FILES = \
+ $(GUILE_SOURCE_FILES:.scm=.go)
+
+gobjdir = $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache
+nobase_gobj_DATA = $(GUILE_OBJECT_FILES)
+
+scmdir = $(datarootdir)/guile/site/@GUILE_EFFECTIVE_VERSION@
+nobase_dist_scm_DATA = $(GUILE_SOURCE_FILES)
+
+.scm.go:
+ $(top_builddir)/pre-inst-env $(GUILD) compile --output=$@ $<
+
+MOSTLYCLEANFILES = $(GUILE_OBJECT_FILES)