blob: e23eb701d83f426caae8ca07c36c479de5f2907c (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# SPDX-License-Identifier: CC0-1.0
#
# Copyright (C) 2023, 2024 Wojtek Kosior <koszko@koszko.org>
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)
|