summaryrefslogtreecommitdiff
path: root/src/Makefile_Eolian.am
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-03-10 18:14:16 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-03-10 18:15:25 +0100
commit995eac166a22b61054be0ccc8901db04f49a1ec7 (patch)
tree8cbea6f9d1ce75e1cd0bff8b9fd6814d51fed227 /src/Makefile_Eolian.am
parentc6589ffc1929b920dbbe536c19a137678f1d3ce4 (diff)
eolian: generate eo_lexer.c with ragel if available
Diffstat (limited to 'src/Makefile_Eolian.am')
-rw-r--r--src/Makefile_Eolian.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Makefile_Eolian.am b/src/Makefile_Eolian.am
index 871ffffb2f..6807557b52 100644
--- a/src/Makefile_Eolian.am
+++ b/src/Makefile_Eolian.am
@@ -42,3 +42,16 @@ bin_eolian_eolian_gen_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@
42include Makefile_Eolian_Helper.am 42include Makefile_Eolian_Helper.am
43 43
44EXTRA_DIST += lib/eolian/eo_lexer.rl 44EXTRA_DIST += lib/eolian/eo_lexer.rl
45
46if EFL_HAVE_RAGEL
47SUFFIXES += .rl
48
49AM_V_RAGEL = $(am__v_RAGEL_@AM_V@)
50am__v_RAGEL_ = $(am__v_RAGEL_@AM_DEFAULT_V@)
51am__v_RAGEL_0 = @echo " RAGEL " $@;
52
53.rl.c:
54 $(AM_V_RAGEL) ragel -o $@ $<
55
56lib/eolian/eo_lexer.c: lib/eolian/eo_lexer.rl
57endif