Skip to content

Commit

Permalink
Polish Makefile
Browse files Browse the repository at this point in the history
Replace `echo` with builtin `info` command
  • Loading branch information
bamboo committed Dec 1, 2024
1 parent 24567ab commit 730d15e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
.PHONY: test

test: bin/s7 demo/.godot
@echo 🧪 Running tests
$(info 🧪 Running tests)
bin/s7 test/test-main.scm

bin/s7: s7/s7.c
@echo ⚙️ Building scheme interpreter
$(info 🛠️ Building scheme interpreter)
gcc s7/s7.c -o bin/s7 -DWITH_MAIN -DWITH_SYSTEM_EXTRAS -DWITH_C_LOADER=0 -I. -O2 -g -ldl -lm

SRC_FILES := $(shell find src -type f ! -name "*.os")
DEMO_FILES := $(shell find demo -type f -name "*.tscn" -or -name "*.scm")

demo/.godot: $(SRC_FILES) $(DEMO_FILES)
@echo ⚙️ Building extension
$(info 🛠️ Building extension)
@scons
@echo 📦 Importing test scene
$(info 📦 Importing test scene)
godot --path demo --headless --import

.PHONY: run
Expand Down

0 comments on commit 730d15e

Please sign in to comment.