Create ragel-generated files in srcdir

This commit is contained in:
Behdad Esfahbod 2014-10-01 14:24:07 -04:00
parent 79bbb10b0d
commit c0b82ba32a
1 changed files with 10 additions and 15 deletions

View File

@ -290,13 +290,14 @@ built-sources: $(BUILT_SOURCES)
.PHONY: unicode-tables arabic-table indic-table built-sources .PHONY: unicode-tables arabic-table indic-table built-sources
BUILT_SOURCES += \ RAGEL_GENERATED = \
hb-buffer-deserialize-json.hh \ $(srcdir)/hb-buffer-deserialize-json.hh \
hb-buffer-deserialize-text.hh \ $(srcdir)/hb-buffer-deserialize-text.hh \
hb-ot-shape-complex-indic-machine.hh \ $(srcdir)/hb-ot-shape-complex-indic-machine.hh \
hb-ot-shape-complex-myanmar-machine.hh \ $(srcdir)/hb-ot-shape-complex-myanmar-machine.hh \
hb-ot-shape-complex-sea-machine.hh \ $(srcdir)/hb-ot-shape-complex-sea-machine.hh \
$(NULL) $(NULL)
BUILT_SOURCES += $(RAGEL_GENERATED)
EXTRA_DIST += \ EXTRA_DIST += \
hb-buffer-deserialize-json.rl \ hb-buffer-deserialize-json.rl \
hb-buffer-deserialize-text.rl \ hb-buffer-deserialize-text.rl \
@ -304,15 +305,9 @@ EXTRA_DIST += \
hb-ot-shape-complex-myanmar-machine.rl \ hb-ot-shape-complex-myanmar-machine.rl \
hb-ot-shape-complex-sea-machine.rl \ hb-ot-shape-complex-sea-machine.rl \
$(NULL) $(NULL)
MAINTAINERCLEANFILES += \ MAINTAINERCLEANFILES += $(RAGEL_GENERATED)
hb-buffer-deserialize-json.hh \ $(srcdir)/%.hh: $(srcdir)/%.rl
hb-buffer-deserialize-text.hh \ $(AM_V_GEN)(cd $(srcdir) && $(RAGEL) -e -F1 -o "$*.hh" "$*.rl") \
hb-ot-shape-complex-indic-machine.hh \
hb-ot-shape-complex-myanmar-machine.hh \
hb-ot-shape-complex-sea-machine.hh \
$(NULL)
.rl.hh:
$(AM_V_GEN)$(RAGEL) -e -F1 -o "$@" "$<" \
|| ($(RM) "$@"; false) || ($(RM) "$@"; false)
noinst_PROGRAMS = \ noinst_PROGRAMS = \