From 703e9e93087d32364087a0ebc9e315869b70ff7c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 15 Jun 2024 21:17:03 -0500 Subject: Update things --- Makefile | 66 +++++++++++----------------------------------------------------- 1 file changed, 11 insertions(+), 55 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d2a1003..2e0612e 100644 --- a/Makefile +++ b/Makefile @@ -1,61 +1,17 @@ -# Automatically generated by scramble - NAME = jimmy -CSC = /usr/bin/csc -CSC_OPTIONS = -setup-mode -host -I $(PWD) -C -I$(BUILD) -CSC_LIB_OPTIONS = -D compiling-extension -emit-all-import-libraries -dynamic -regenerate-import-libraries -CSC_OPTIONS_EXTRA = -X utf8 -X module-declarations -CSI = /usr/bin/csi -BUILD = $(PWD)/build +CSI = csi -setup-mode -s TESTS = $(PWD)/tests -TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) -TEST_ENV_EXTRA = TEST_USE_ANSI=0 - -.PHONY: all test clean install uninstall -all: build/jimmy.util.so build/jimmy.read.so build/jimmy.emit.so build/jimmy.html.so build/jimmy.wrap.so build/jimmy.main.so build/jimmy -test: all - cd $(BUILD) && $(TEST_ENV) $(TEST_ENV_EXTRA) $(CSI) -setup-mode -s $(TESTS)/run.scm $(NAME) +TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) TEST_USE_ANSI=0 +ARTEFACTS = *.build.sh *.install.sh *.import.scm *.so *.link *.o + +.PHONY: build test clean install uninstall +build: + chicken-install -n +test: build + $(TEST_ENV) $(CSI) $(TESTS)/run.scm $(NAME) clean: - -rm -rf $(BUILD) *.build.sh *.install.sh $(NAME) *.import.scm *.so *.link *.static.o + -rm -rf $(ARTEFACTS) $(NAME) install: chicken-install -s uninstall: - chicken-uninstall -s - -# jimmy - -build/jimmy.util.so: lib/util.scm - @mkdir -p $(BUILD) - $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ - @test -f jimmy.util.import.scm &&mv jimmy.util.import.scm $(BUILD)/||true - -build/jimmy.read.so: lib/read.scm lib/util.scm - @mkdir -p $(BUILD) - $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ - @test -f jimmy.read.import.scm &&mv jimmy.read.import.scm $(BUILD)/||true - -build/jimmy.emit.so: lib/emit.scm lib/util.scm - @mkdir -p $(BUILD) - $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ - @test -f jimmy.emit.import.scm &&mv jimmy.emit.import.scm $(BUILD)/||true - -build/jimmy.html.so: lib/html.scm lib/util.scm lib/emit.scm - @mkdir -p $(BUILD) - $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ - @test -f jimmy.html.import.scm &&mv jimmy.html.import.scm $(BUILD)/||true - -build/jimmy.wrap.so: lib/wrap.scm lib/util.scm lib/emit.scm - @mkdir -p $(BUILD) - $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ - @test -f jimmy.wrap.import.scm &&mv jimmy.wrap.import.scm $(BUILD)/||true - -build/jimmy.main.so: lib/main.scm lib/util.scm lib/emit.scm lib/read.scm lib/wrap.scm - @mkdir -p $(BUILD) - $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ - @test -f jimmy.main.import.scm &&mv jimmy.main.import.scm $(BUILD)/||true - -build/jimmy: bin/jimmy.scm lib/main.scm - @mkdir -p $(BUILD) - $(CSC) $(CSC_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ - @test -f jimmy.import.scm &&mv jimmy.import.scm $(BUILD)/||true - + chicken-uninstall -s $(NAME) -- cgit 1.4.1-21-gabe81