Commit bc6da258
bc6da2583b7bMerged
Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 3 files · +1 added · ~2 modified
Description
rename: spinel_parse_bin → spinel_parse
Consistent naming with spinel_codegen.rb → spinel_codegen.
Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]
Details
- Commit
- bc6da2583b7b
- Parent
- 4318a52c401e
MakefilemodifiedView file
@@ -39,9 +39,9 @@
3939
4040
# ---- C Parser ----4141
42-
parse: spinel_parse_bin42+
parse: spinel_parse4343
44-
spinel_parse_bin: spinel_parse.c $(PRISM_LIB)44+
spinel_parse: spinel_parse.c $(PRISM_LIB)4545
$(CC) $(CFLAGS) -I$(PRISM_INC) $< $(PRISM_LIB) -lm -o $@4646
4747
# ---- Regexp library (for programs using /pattern/) ----@@ -63,9 +63,9 @@
6363
6464
bootstrap: spinel_codegen6565
66-
spinel_codegen: spinel_codegen.rb spinel_parse_bin66+
spinel_codegen: spinel_codegen.rb spinel_parse6767
@echo "=== Bootstrap Step 1: parse ==="68-
./spinel_parse_bin spinel_codegen.rb build/codegen.ast68+
./spinel_parse spinel_codegen.rb build/codegen.ast6969
@echo "=== Bootstrap Step 2: gen1 (CRuby) ==="7070
ruby spinel_codegen.rb build/codegen.ast build/gen1.c7171
$(CC) $(CFLAGS) build/gen1.c -lm -o build/bin1@@ -79,11 +79,11 @@
7979
8080
# ---- Test ----8181
82-
test: spinel_parse_bin spinel_codegen82+
test: spinel_parse spinel_codegen8383
@pass=0; fail=0; err=0; \8484
for f in test/*.rb; do \8585
bn=$$(basename "$$f" .rb); \86-
./spinel_parse_bin "$$f" /tmp/_sp_t.ast 2>/dev/null && \86+
./spinel_parse "$$f" /tmp/_sp_t.ast 2>/dev/null && \8787
./spinel_codegen /tmp/_sp_t.ast /tmp/_sp_t.c 2>/dev/null && \8888
$(CC) $(CFLAGS) /tmp/_sp_t.c -lm -o /tmp/_sp_t_bin 2>/dev/null; \8989
if [ $$? -eq 0 ]; then \@@ -101,11 +101,11 @@
101101
rm -f /tmp/_sp_t.ast /tmp/_sp_t.c /tmp/_sp_t_bin; \102102
echo "Tests: $$pass pass, $$fail fail, $$err error"103103
104-
bench: spinel_parse_bin spinel_codegen104+
bench: spinel_parse spinel_codegen105105
@pass=0; fail=0; \106106
for f in benchmark/*.rb; do \107107
bn=$$(basename "$$f" .rb); \108-
./spinel_parse_bin "$$f" /tmp/_sp_b.ast 2>/dev/null && \108+
./spinel_parse "$$f" /tmp/_sp_b.ast 2>/dev/null && \109109
./spinel_codegen /tmp/_sp_b.ast /tmp/_sp_b.c 2>/dev/null && \110110
$(CC) $(CFLAGS) /tmp/_sp_b.c -lm -o /tmp/_sp_b_bin 2>/dev/null; \111111
if [ $$? -eq 0 ]; then \@@ -131,7 +131,7 @@
131131
install: all132132
install -d $(SPNLDIR)/lib/regexp133133
install -m 755 spinel $(SPNLDIR)/134-
install -m 755 spinel_parse_bin $(SPNLDIR)/134+
install -m 755 spinel_parse $(SPNLDIR)/135135
install -m 755 spinel_codegen $(SPNLDIR)/136136
install -m 644 spinel_parse.rb $(SPNLDIR)/137137
install -m 644 spinel_codegen.rb $(SPNLDIR)/@@ -147,4 +147,4 @@
147147
148148
clean:149149
rm -rf build/150-
rm -f spinel_parse_bin spinel_codegen150+
rm -f spinel_parse spinel_codegenspinelmodifiedView file
Loading diff…
spinel_parseaddedView file
Loading diff…