# SPDX-License-Identifier: CC0-1.0 # # Copyright (C) 2023, 2024 Wojtek Kosior DIST_GUILE_SOURCE_FILES = \ $(PACKAGE).scm \ $(PACKAGE)/main-site.scm \ $(PACKAGE)/password.scm \ $(PACKAGE)/users.scm NODIST_NOINST_GUILE_SOURCE_FILES = \ $(PACKAGE)/pre-inst-config.scm NODIST_INST_GUILE_SOURCE_FILES = \ $(PACKAGE)/config.scm NODIST_GUILE_SOURCE_FILES = \ $(NODIST_NOINST_GUILE_SOURCE_FILES) \ $(NODIST_INST_GUILE_SOURCE_FILES) INST_GUILE_SOURCE_FILES = \ $(DIST_GUILE_SOURCE_FILES) \ $(NODIST_INST_GUILE_SOURCE_FILES) GUILE_SOURCE_FILES = \ $(DIST_GUILE_SOURCE_FILES) \ $(NODIST_GUILE_SOURCE_FILES) INST_GUILE_OBJECT_FILES = $(INST_GUILE_SOURCE_FILES:.scm=.go) GUILE_OBJECT_FILES = $(GUILE_SOURCE_FILES:.scm=.go) gobjdir = $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache nobase_gobj_DATA = $(INST_GUILE_OBJECT_FILES) nodist_gobj_DATA = $(NODIST_GUILE_SOURCE_FILES:.scm=.go) scmdir = $(datarootdir)/guile/site/@GUILE_EFFECTIVE_VERSION@ nobase_dist_scm_DATA = $(DIST_GUILE_SOURCE_FILES) nobase_scm_DATA = $(NODIST_INST_GUILE_SOURCE_FILES) MOSTLYCLEANFILES = \ $(GUILE_OBJECT_FILES) \ $(NODIST_GUILE_SOURCE_FILES) $(PACKAGE)/pre-inst-config.scm: $(top_builddir)/gen-pre-inst-config-scm mkdir $(PACKAGE) 2>/dev/null || true $< $(PACKAGE) > $@ $(PACKAGE)/config.scm: $(top_srcdir)/gen-config-scm mkdir $(PACKAGE) 2>/dev/null || true datarootdir="$(datarootdir)" $< $(PACKAGE) > $@ .scm.go: $(top_builddir)/pre-inst-env $(GUILD) compile --output=$@ $< $(GUILE_OBJECT_FILES): $(PACKAGE)/config.scm $(PACKAGE)/pre-inst-config.scm uninstall-hook: rm -rf $(DESTDIR)/$(scmdir)/$(PACKAGE) rm -rf $(DESTDIR)/$(gobjdir)/$(PACKAGE)