From c073233f45da6ad8131dd38cb43b125f48c17432 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 2 Jul 2019 14:26:45 -0700 Subject: [PATCH] Add make rule to build hb.cc Part of https://github.com/harfbuzz/harfbuzz/issues/1809 --- src/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index e7b279ddc..c276118e8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -303,6 +303,12 @@ $(srcdir)/%.hh: $(srcdir)/%.rl $(AM_V_GEN)(cd $(srcdir) && $(RAGEL) -e -F1 -o "$*.hh" "$*.rl") \ || ($(RM) "$@"; false) +hb.cc: Makefile.sources + $(AM_V_GEN) \ + for f in $(HB_BASE_sources); do echo '#include "'$$f'"'; done | \ + grep '[.]cc"' > $(srcdir)/hb.cc \ + || ($(RM) $(srcdir)/hb.cc; false) + noinst_PROGRAMS = \ main \ test \