diff options
author | Case Duckworth | 2024-05-29 12:55:28 -0500 |
---|---|---|
committer | Case Duckworth | 2024-05-29 12:55:28 -0500 |
commit | 25982a628d3dc194e52708fd429a81746d1890a1 (patch) | |
tree | 3a0c9bbec820ec30ea8464ad8f4402f25f87f8d9 /Makefile | |
parent | Relativize file names (diff) | |
download | scramble-25982a628d3dc194e52708fd429a81746d1890a1.tar.gz scramble-25982a628d3dc194e52708fd429a81746d1890a1.zip |
Correct path stuff for build/ building
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile index 2ac521f..7ecdf53 100644 --- a/Makefile +++ b/Makefile | |||
@@ -11,11 +11,11 @@ TESTS = $(PWD)/tests | |||
11 | TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) | 11 | TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) |
12 | 12 | ||
13 | .PHONY: all test clean install uninstall | 13 | .PHONY: all test clean install uninstall |
14 | all: /home/acdw/src/scramble/build/scramble | 14 | all: build/scramble |
15 | test: $(BUILD) | 15 | test: $(BUILD) |
16 | cd $(BUILD) && $(TEST_ENV) $(CSI) -setup-mode -s $(TESTS)/run.scm $(NAME) | 16 | cd $(BUILD) && $(TEST_ENV) $(CSI) -setup-mode -s $(TESTS)/run.scm $(NAME) |
17 | clean: | 17 | clean: |
18 | -rm -rf $(BUILD) *.build.sh *.install.sh $(NAME) *.import.scm *.import.so *.link *.static.o | 18 | -rm -rf $(BUILD) *.build.sh *.install.sh $(NAME) *.import.scm *.so *.link *.static.o |
19 | install: | 19 | install: |
20 | chicken-install -s | 20 | chicken-install -s |
21 | uninstall: | 21 | uninstall: |
@@ -25,6 +25,7 @@ uninstall: | |||
25 | 25 | ||
26 | $(BUILD): | 26 | $(BUILD): |
27 | -mkdir $(BUILD) | 27 | -mkdir $(BUILD) |
28 | /home/acdw/src/scramble/build/scramble: /home/acdw/src/scramble/scramble.scm $(BUILD) | 28 | build/scramble: scramble.scm $(BUILD) |
29 | $(CSC) $(CSC_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ | 29 | cd $(BUILD) && \ |
30 | $(CSC) $(CSC_OPTIONS) $(CSC_OPTIONS_EXTRA) ../$< -o $(@F) | ||
30 | @if test -f scramble.import.scm;then mv scramble.import.scm $(BUILD)/;echo mv scramble.import.scm $(BUILD)/; fi | 31 | @if test -f scramble.import.scm;then mv scramble.import.scm $(BUILD)/;echo mv scramble.import.scm $(BUILD)/; fi |