Initial commit.
This commit is contained in:
commit
878d52ee27
26 changed files with 3341 additions and 0 deletions
61
ebuild/Makefile.am
Normal file
61
ebuild/Makefile.am
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
################################################################################
|
||||
# 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/>.
|
||||
################################################################################
|
||||
SUBDIRS = fetchers
|
||||
|
||||
moddir=$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)/ebuild
|
||||
objdir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache/ebuild
|
||||
|
||||
#https://www.gnu.org/software/automake/manual/html_node/Scripts.html
|
||||
bin_SCRIPTS=ebuild-autogen
|
||||
SOURCES = \
|
||||
bash-utils.scm \
|
||||
cli.scm \
|
||||
defs.scm \
|
||||
gen.scm \
|
||||
repo.scm \
|
||||
utils.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
|
||||
# <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) \
|
||||
version.scm.in
|
||||
|
||||
CLEANFILES = $(GOBJECTS) ${bin_SCRIPTS}
|
||||
|
||||
GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
|
||||
GUILE_OPTS = -L $(abs_top_builddir)
|
||||
SUFFIXES = .scm .go .in
|
||||
|
||||
version.scm: version.scm.in
|
||||
$(file >$@,$(subst {{version}},$(VERSION),$(file <$<)))
|
||||
|
||||
ebuild-autogen: ebuild-autogen.in
|
||||
$(file >$@,$(subst {{guile-bin}},$(GUILE),$(file <$<)))
|
||||
|
||||
.scm.go:
|
||||
$(GUILD) compile $(GUILE_TARGET) $(GUILE_OPTS) $(GUILE_WARNINGS) -o "$@" "$<"
|
||||
Loading…
Add table
Add a link
Reference in a new issue