From c1aae14a68eaea92c4de20e372cfca05c66c50b1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 4 Dec 2022 13:53:55 -0700 Subject: [PATCH] [features.h] Fix autotools build rules --- src/Makefile.am | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index d8f68ae05..81ae9ec2d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -251,18 +251,20 @@ EXTRA_DIST += \ BUILT_SOURCES += \ hb-features.h +DISTCLEANFILES += \ + hb-features.h -hb-features.h: hb-features.h.in $(top_srcdir)/configure.ac +hb-features.h: hb-features.h.in $(top_builddir)/config.status $(AM_V_GEN) $(SED) \ -e 's/mesondefine HB_HAS_FREETYPE/$(HB_HAS_FREETYPE_DEF)/' \ -e 's/mesondefine HB_HAS_GDI/$(HB_HAS_GDI_DEF)/' \ - -e 's/#mesondefine HB_HAS_GDI/$(HB_HAS_GDI_DEF)/' \ - -e 's/#mesondefine HB_HAS_GRAPHITE/$(HB_HAS_GRAPHITE_DEF)/' \ - -e 's/#mesondefine HB_HAS_GLIB/$(HB_HAS_GLIB_DEF)/' \ - -e 's/#mesondefine HB_HAS_UNISCRIBE/$(HB_HAS_UNISCRIBE_DEF)/' \ - -e 's/#mesondefine HB_HAS_DIRECTWRITE/$(HB_HAS_DIRECTWRITE_DEF)/' \ - -e 's/#mesondefine HB_HAS_CORETEXT/$(HB_HAS_CORETEXT_DEF)/' \ - -e 's/#mesondefine HB_HAS_ICU/$(HB_HAS_ICU_DEF)/' \ + -e 's/mesondefine HB_HAS_GDI/$(HB_HAS_GDI_DEF)/' \ + -e 's/mesondefine HB_HAS_GRAPHITE/$(HB_HAS_GRAPHITE_DEF)/' \ + -e 's/mesondefine HB_HAS_GLIB/$(HB_HAS_GLIB_DEF)/' \ + -e 's/mesondefine HB_HAS_UNISCRIBE/$(HB_HAS_UNISCRIBE_DEF)/' \ + -e 's/mesondefine HB_HAS_DIRECTWRITE/$(HB_HAS_DIRECTWRITE_DEF)/' \ + -e 's/mesondefine HB_HAS_CORETEXT/$(HB_HAS_CORETEXT_DEF)/' \ + -e 's/mesondefine HB_HAS_ICU/$(HB_HAS_ICU_DEF)/' \ "$<" > "$@" || ($(RM) "$@"; false)