From dc409bc59642b5c2aa7293d770a6907605f0c8ee Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Sat, 5 Jan 2013 14:38:32 +0000 Subject: [PATCH] efl/edje: codegen shouldn't use BUILT_SOURCES. if use BUILT_SOURCES it will always generate those files, and their requirement codegen.edj, even if examples were not to be built. make will automatically build the files if there are rules to do so, we just have to clean them. SVN revision: 82275 --- edje/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/edje/Makefile.am b/edje/Makefile.am index a0708011..97bcd1ca 100644 --- a/edje/Makefile.am +++ b/edje/Makefile.am @@ -140,11 +140,13 @@ AM_CPPFLAGS = \ -DPACKAGE_DATA_DIR=\"$(datadir)/edje\" \ @EDJE_CFLAGS@ +CODEGEN_GENERATED = \ +codegen_example_generated.c \ +codegen_example_generated.h + codegen_example_generated.c codegen_example_generated.h: codegen.edj $(AM_V_GEN)$(EDJE_CODEGEN) $(EDJE_CODEGEN_FLAGS) codegen.edj example_group $(builddir)/codegen_example_generated.c $(builddir)/codegen_example_generated.h -BUILT_SOURCES = codegen_example_generated.c codegen_example_generated.h - edje_codegen_example_SOURCES = \ edje-codegen-example.c nodist_edje_codegen_example_SOURCES = \ @@ -197,7 +199,7 @@ endif examples: $(EXTRA_PROGRAMS) $(EDJS) clean-local: - rm -f $(EXTRA_PROGRAMS) $(EDJS) + rm -f $(EXTRA_PROGRAMS) $(EDJS) $(CODEGEN_GENERATED) install-examples: mkdir -p $(datadir)/edje/examples