Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.2.5] Fix #1480 #1622

Merged
merged 6 commits into from Dec 2, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Makefile to regenerate parsers
  • Loading branch information
sjinks committed Dec 1, 2013
commit 3e5d820efbfedb99a7c3fd9e08c0e932ebafcc8f
20 changes: 20 additions & 0 deletions ext/annotations/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
all: scanner.c parser.c lemon

lemon: lemon.c
$(CC) -O2 "$<" -o "$@"

scanner.c: scanner.re Makefile
re2c -b -o "$@" "$<"
sed -i 's!^#line.*$$!/* & */!g' "$@"
sed -i 's/YY/JJ/g; s/yy/jj/g' "$@"

parser.c: parser.lemon base.c Makefile lemon
./lemon -s -q "$<"
cat base.c >> "$@"
sed -i 's!^#line.*$$!/* & */!g' "$@"
sed -i 's/YY/JJ/g; s/yy/jj/g; s/TOKEN/JTOKEN/g' "$@"

clean:
-rm -f *.o *.lo

.PHONY: clean