Hello,

Nikolaos Chatzikonstantinou <[email protected]> writes:

> Hello list,
>
> I am trying to "fix" the support of GNU Guile in Autotools. Guile
> ships its guile/meta/guile.m4 macros, that among other things, set
> GUILE_SITE to /usr/share/guile/site/3.0/ (on Debian 12) or similar.
>
> Since automake does not understand bin_PROGRAMS, etc, for Guile,
> programmers are forced to use _DATA to ship scheme files:
>
>     foo_DATA = foo.scm
>     foodir = $(GUILE_SITE)/foo

I do not think this is necessary.  Short snippet extracted from my
"blueprint" repository for GNU Guile projects:

--8<---------------cut here---------------start------------->8---
###############
#
# Guile section
#
###############

GO_FILES = $(SOURCES:.scm=.go)
GO_FILES_TEST = $(SCM_TESTS:.scm=.go)

GUILE_WARNINGS ?= -W3
GUILE_OPTIMIZATIONS ?= -O2

moddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)
nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)

ccachedir = $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
nobase_ccache_DATA = $(GO_FILES)

EXTRA_DIST += $(SOURCES) $(NOCOMP_SOURCES)
CLEANFILES += $(GO_FILES) $(GO_FILES_TEST)
--8<---------------cut here---------------end--------------->8---

It seems to me that everything works fine (tested on GNU Guix and on
macOS).  Maybe I am just missing some edge-case or something
Debian-specific?

Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Reply via email to