summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1a98ee9..b2624d7 100644
--- a/Makefile
+++ b/Makefile
@@ -34,11 +34,8 @@ $(BUILD)%.o: $(SRC)%.c
$(SRC)screen.c: $(SRC)parser.h
-$(SRC)%.c: $(SRC)%.l
- $(LEX) -o $@ $<
-
-$(SRC)%.h: $(SRC)%.l
- $(LEX) --header-file=$(<:.l=.h) -o /dev/null $<
+$(SRC)%.c: $(SRC)%.re
+ re2c -o $@ $<
clean:
rm -f $(OUT) $(SOUT) $(OBJ) $(OBJ:$(BUILD)%.o=$(BUILD).%.d)