49 lines
1.7 KiB
Text
49 lines
1.7 KiB
Text
|
################################################################################
|
||
|
# Makefile.am
|
||
|
# Copyright (C) 2025 Cor Legemaat <cor@cor.za.net>
|
||
|
#
|
||
|
# This file is part of ebuild-autogen: you can redistribute it and/or modify it
|
||
|
# under the terms of the GNU Affero General Public License as published by the
|
||
|
# Free Software Foundation, version 3 of the License.
|
||
|
|
||
|
# ebuild-autogen is distributed in the hope that it will be useful, but WITHOUT
|
||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||
|
#
|
||
|
# You should have received a copy of the GNU General Public License along with
|
||
|
# ebuild-autogen. If not, see <https://www.gnu.org/licenses/>.
|
||
|
################################################################################
|
||
|
|
||
|
moddir=$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)/dql
|
||
|
objdir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache/dql
|
||
|
|
||
|
SOURCES = \
|
||
|
ebuild.scm \
|
||
|
forgejo.scm \
|
||
|
github.scm \
|
||
|
pypi.scm \
|
||
|
raw.scm
|
||
|
|
||
|
GOBJECTS = $(SOURCES:%.scm=%.go)
|
||
|
|
||
|
nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
|
||
|
nobase_obj_DATA = $(GOBJECTS)
|
||
|
|
||
|
# Make sure source files are installed first, so that the mtime of
|
||
|
# installed compiled files is greater than that of installed source
|
||
|
# files. See
|
||
|
# <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
|
||
|
# for details.
|
||
|
guile_install_obj_files = install-nobase_obj_DATA
|
||
|
$(guile_install_obj_files): install-nobase_mod_DATA
|
||
|
|
||
|
EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
|
||
|
|
||
|
CLEANFILES = $(GOBJECTS)
|
||
|
|
||
|
GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
|
||
|
GUILE_OPTS = -L $(abs_top_builddir)
|
||
|
SUFFIXES = .scm .go
|
||
|
.scm.go:
|
||
|
$(GUILD) compile $(GUILE_TARGET) $(GUILE_OPTS) $(GUILE_WARNINGS) -o "$@" "$<"
|