################################################################################ # Makefile.am # Copyright (C) 2025 Cor Legemaat # # 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 . ################################################################################ moddir=$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)/ebuild/fetchers objdir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache/ebuild/fetchers SOURCES = \ ebuild.scm \ forgejo.scm \ github.scm \ pypi.scm \ raw.scm # Manual dependencys. ebuild.go: ../version.scm forgejo.go: ../version.scm github.go: ../version.scm pypi.go: ../version.scm raw.scm: ../version.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 # # 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 "$@" "$<" # Build dep in parent folder. ../version.scm: $(am__cd) ../ && $(MAKE) $(AM_MAKEFLAGS) version.scm