From 25982a628d3dc194e52708fd429a81746d1890a1 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 29 May 2024 12:55:28 -0500 Subject: Correct path stuff for build/ building --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2ac521f..7ecdf53 100644 --- a/Makefile +++ b/Makefile @@ -11,11 +11,11 @@ TESTS = $(PWD)/tests TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) .PHONY: all test clean install uninstall -all: /home/acdw/src/scramble/build/scramble +all: build/scramble test: $(BUILD) cd $(BUILD) && $(TEST_ENV) $(CSI) -setup-mode -s $(TESTS)/run.scm $(NAME) clean: - -rm -rf $(BUILD) *.build.sh *.install.sh $(NAME) *.import.scm *.import.so *.link *.static.o + -rm -rf $(BUILD) *.build.sh *.install.sh $(NAME) *.import.scm *.so *.link *.static.o install: chicken-install -s uninstall: @@ -25,6 +25,7 @@ uninstall: $(BUILD): -mkdir $(BUILD) -/home/acdw/src/scramble/build/scramble: /home/acdw/src/scramble/scramble.scm $(BUILD) - $(CSC) $(CSC_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ +build/scramble: scramble.scm $(BUILD) + cd $(BUILD) && \ + $(CSC) $(CSC_OPTIONS) $(CSC_OPTIONS_EXTRA) ../$< -o $(@F) @if test -f scramble.import.scm;then mv scramble.import.scm $(BUILD)/;echo mv scramble.import.scm $(BUILD)/; fi -- cgit 1.4.1-21-gabe81