aboutsummaryrefslogtreecommitdiff
# 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)