summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-06-08 10:26:06 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-06-10 13:04:18 +0200
commit93eadd76d6d49bbe1e49eaf976b4c6fd5545f340 (patch)
tree1d5e92af79028658a3c858fc29cd1181a438279c /src/Makefile.am
parente165854a78949cd76fedd84cd124de2185c910c9 (diff)
build: split EXTRA_DIST files in src/ off from DISTFILES and handle separately
This is again to avoid the "Argument list too long" error we are hitting more and more now. Given we just merged elementary, emotion generic players, evas generic loaders and elm_code it is not surprising we are hitting it again. This time the number of files being hold in DISTFILES has just grown to big so a make dist was no longer possible. If one looks at what the DISTFILES variable from automake holds you can image it grows a lot with all the source files plus generated files we have in tree now. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) To cut off a big chunk but still keep all the other automagic in place for SOURCE files I went and renamed the EXTRA_DIST in src/ to EXTRA_DIST2 and handle the files in a dist-hook now. Another thing to note here is that this also only happens as we have the one big Makefile with includes. If we go back to per directory Makefiles this problem should vanish as well. In any case we need a solution for 1.18 now and this is what I have to offer. If you have a cleaner solution in mind feel welcome to test it out and if everything we need keeps working (make, make examples, make check, make benchmark, make dist and make distcheck) go ahead.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 1ab50e0..36822c9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -15,7 +15,7 @@ bin_SCRIPTS =
15noinst_PROGRAMS = 15noinst_PROGRAMS =
16check_PROGRAMS = 16check_PROGRAMS =
17TESTS = 17TESTS =
18EXTRA_DIST = 18EXTRA_DIST2 =
19 19
20noinst_LTLIBRARIES = 20noinst_LTLIBRARIES =
21noinst_DATA = 21noinst_DATA =
@@ -160,6 +160,20 @@ install-examples:
160 $(MAKE) $(AM_MAKEFLAGS) -C $$d install-examples || exit 1; \ 160 $(MAKE) $(AM_MAKEFLAGS) -C $$d install-examples || exit 1; \
161 done 161 done
162 162
163dist-hook:
164 @mkdir -p $(distdir)/tests/elua/data/apps $(distdir)/tests/eolian/data
165 @mkdir -p $(distdir)/tests/evas/images $(distdir)/tests/evas/meshes
166 @mkdir -p $(distdir)/tests/efreet/data $(distdir)/tests/edje/data
167 @mkdir -p $(distdir)/tests/emotion/data $(distdir)/tests/evas/meshes/md2
168 @mkdir -p $(distdir)/tests/evas/meshes/obj $(distdir)/tests/efreet/data/sub
169 @mkdir -p $(distdir)/scripts/eina $(distdir)/scripts/elua/modules
170 @mkdir -p $(distdir)/scripts/elua/core $(distdir)/scripts/elua/apps/docgen
171 @mkdir -p $(distdir)/lib/evas/common/evas_op_add $(distdir)/lib/evas/common/evas_op_copy
172 @mkdir -p $(distdir)/lib/evas/common/evas_op_mask $(distdir)/lib/evas/common/evas_op_mul
173 @mkdir -p $(distdir)/lib/evas/common/evas_op_sub $(distdir)/lib/evas/filters/blur
174 @mkdir -p $(distdir)/static_libs/http-parser/contrib $(distdir)/bindings/luajit/eina
175 for F in $(EXTRA_DIST2); do cp -f $(srcdir)/$$F $(distdir)/$$F; done
176
163clean-local: 177clean-local:
164 find . -type f -name '*.gcno' -delete 178 find . -type f -name '*.gcno' -delete
165 find . -type f -name '*.gcda' -delete 179 find . -type f -name '*.gcda' -delete