build: split of BUILT_SOURCES cleanup from CLEANFILES
authorStefan Schmidt <stefan@osg.samsung.com>
Thu, 29 Jun 2017 09:37:29 +0000 (11:37 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Thu, 29 Jun 2017 10:45:29 +0000 (12:45 +0200)
This was another instance of the arguments list to long problem when the
file list of CLEANFILES got to long. During distclean the cleanup failed
and left tons of files sitting around. We rm these files in our own
local clean rule now.

src/Makefile.am

index 3231cd9..48b0027 100644 (file)
@@ -96,9 +96,6 @@ endif
 include Makefile_Eolian_Js.am
 include Makefile_Efl_Js.am
 
-# Make sure all generated files getting cleaned up
-CLEANFILES += $(BUILT_SOURCES)
-
 .PHONY: benchmark examples
 
 BENCHMARK_SUBDIRS = \
@@ -186,6 +183,7 @@ clean-local:
        find . -type f -name check-results.xml -delete
        rm -f $(GENERATED_JS_BINDINGS)
        rm -f $(GENERATED_LUA_BINDINGS)
+       rm -f $(BUILT_SOURCES)
 
 install-exec-hook:
        $(MKDIR_P) $(DESTDIR)$(libdir)