From: Mike Blumenkrantz Date: Thu, 28 Mar 2019 15:25:21 +0000 (-0400) Subject: build: improve autotools generation of elm config X-Git-Tag: submit/tizen/20190402.051338~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=749beb46191a5a7586863041171f07ed825982ab;p=platform%2Fupstream%2Fefl.git build: improve autotools generation of elm config - don't generate and re-link on every make rule - fix distcheck Reviewed-by: Marcel Hollerbach Reviewed-by: YeongJong Lee Differential Revision: https://phab.enlightenment.org/D8506 --- diff --git a/src/Makefile_Elementary.am b/src/Makefile_Elementary.am index a905925..a2729d1a 100644 --- a/src/Makefile_Elementary.am +++ b/src/Makefile_Elementary.am @@ -225,8 +225,7 @@ BUILT_SOURCES += \ $(elm_private_eolian_h) \ $(elm_legacy_eolian_c) \ $(elm_legacy_eolian_eo_h) \ - $(elm_legacy_eolian_legacy_h) \ - lib/elementary/elm_default_config.x + $(elm_legacy_eolian_legacy_h) if INSTALL_EO_FILES elementaryeolianfilesdir = $(datadir)/eolian/include/elementary-@VMAJ@ @@ -1020,6 +1019,8 @@ includesub_HEADERS = \ includesubdir = $(includedir)/elementary-@VMAJ@/ +lib/elementary/elm_config.c: lib/elementary/elm_default_config.x + lib_elementary_libelementary_la_SOURCES = \ lib/elementary/elm_priv.h \ static_libs/atspi/atspi-constants.h \ @@ -1661,7 +1662,7 @@ EXTRA_DIST2 += modules/elementary/prefs/elm_prefs_swallow.edc prefs_filesdir = $(libdir)/elementary/modules/prefs/$(MODULE_ARCH) prefs_files_DATA = modules/elementary/prefs/elm_prefs_swallow.edj -CLEANFILES += $(prefs_files_DATA) +CLEANFILES += $(prefs_files_DATA) lib/elementary/elm_default_config.x ## TIZEN_ONLY(20180509): support elementary optional build if BUILD_TIZEN_EFL @@ -2070,9 +2071,8 @@ EXTRA_DIST2 += \ tests/elementary/elm_suite.h \ lib/elementary/Elementary_Options.h.in \ lib/elementary/elm_code_widget_text.c \ -lib/elementary/elm_code_widget_undo.c - -PHONIES += lib/elementary/elm_default_config.x +lib/elementary/elm_code_widget_undo.c \ +lib/elementary/config_embed -lib/elementary/elm_default_config.x: $(abs_top_srcdir)/data/elementary/config/standard/base.src.in $(abs_top_srcdir)/src/lib/elementary/config_embed - lib/elementary/config_embed $< $@ +lib/elementary/elm_default_config.x: + lib/elementary/config_embed $(abs_top_srcdir)/data/elementary/config/standard/base.src.in $@