moddir=$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION) godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache GOBJECTS = $(MODULES:%.scm=%.go) nobase_mod_DATA = $(MODULES) $(NOCOMP_SOURCES) nobase_go_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_go_files = install-nobase_nodist_guileobjectDATA $(guile_install_go_files): install-nobase_dist_guilemoduleDATA GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat SUFFIXES = .scm .go .scm.go: $(AM_V_GEN)$(top_builddir)/pre-inst-env \ $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<" TEST_EXTENSIONS = .scm SCM_LOG_COMPILER = $(top_builddir)/pre-inst-env $(GUILE) AM_SCM_LOG_FLAGS = --no-auto-compile if HAVE_GENHTML lcov.info: all $(top_builddir)/pre-inst-env $(top_builddir)/tools/coverage coverage: lcov.info $(GENHTML) -o $(top_builddir)/coverage lcov.info endif # HAVE_GENHTML test-list: ; @echo $(TESTS) .PHONY: check-spec check-spec: $(MAKE) $(AM_MAKEFLAGS) -L -C tests/spec check .PHONY: check-bootstrap check-bootstrap: guix build -f tests/bash-without-bash.scm dist-hook: echo $(VERSION) > $(distdir)/.tarball-version MODULES = \ geesh/built-ins/break.scm \ geesh/built-ins/cd.scm \ geesh/built-ins/colon.scm \ geesh/built-ins/continue.scm \ geesh/built-ins/dot.scm \ geesh/built-ins/echo.scm \ geesh/built-ins/eval.scm \ geesh/built-ins/exec.scm \ geesh/built-ins/exit.scm \ geesh/built-ins/export.scm \ geesh/built-ins/false.scm \ geesh/built-ins/pwd.scm \ geesh/built-ins/read.scm \ geesh/built-ins/readonly.scm \ geesh/built-ins/return.scm \ geesh/built-ins/set.scm \ geesh/built-ins/shift.scm \ geesh/built-ins/trap.scm \ geesh/built-ins/true.scm \ geesh/built-ins/umask.scm \ geesh/built-ins/unset.scm \ geesh/built-ins/utils.scm \ geesh/built-ins.scm \ geesh/environment.scm \ geesh/eval.scm \ geesh/lexer.scm \ geesh/parser.scm \ geesh/pattern.scm \ geesh/repl.scm \ geesh/shell.scm \ geesh/word.scm bin_SCRIPTS = \ scripts/geesh do_subst = sed \ -e 's,[@]GUILE[@],$(GUILE),g' \ -e 's,[@]MODDIR[@],$(moddir),g' \ -e 's,[@]GODIR[@],$(godir),g' scripts/geesh: scripts/geesh.in Makefile $(do_subst) < $(srcdir)/scripts/geesh.in > scripts/geesh chmod a+x scripts/geesh TESTS = \ tests/lexer.scm \ tests/parser.scm \ tests/pattern.scm \ tests/shell.scm \ tests/word.scm EXTRA_DIST = \ scripts/geesh.in CLEANFILES = \ $(GOBJECTS) \ $(bin_SCRIPTS) \ $(TESTS:tests/%.scm=%.log) \ $(TESTS:tests/%.scm=%.trs) clean-local: $(MAKE) $(AM_MAKEFLAGS) -L -C tests/spec clean