X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=make%2Flysdoc-rules.make;h=11248f503083bec6336ad8a1a6b2b69416a0c598;hb=121b05751a34e19400dfc5e380fed1d0bff5029e;hp=b4655018836878f4b5b5e2945ecd2a650dd991fa;hpb=1c0ec6f412462ee0f773b09b079847d2be03f64f;p=lilypond.git diff --git a/make/lysdoc-rules.make b/make/lysdoc-rules.make index b465501883..11248f5030 100644 --- a/make/lysdoc-rules.make +++ b/make/lysdoc-rules.make @@ -1,4 +1,19 @@ +# We can't print the list in one go, as it might be longer than a +# shell command is allowed (as of linux 2.6.3x >131000 chars) +# Split it up into 10 300-element chunks, and one chunk containing the rest +# if we have more than 3000 elements. +$(outdir)/collated-files.list: $(COLLATED_FILES) + @echo $(wordlist 1, 299,$^)>$@ + @echo $(wordlist 300, 599,$^)>>$@ + @echo $(wordlist 600, 899,$^)>>$@ + @echo $(wordlist 900,1199,$^)>>$@ + @echo $(wordlist 1200,1499,$^)>>$@ + @echo $(wordlist 1500,1799,$^)>>$@ + @echo $(wordlist 1800,2099,$^)>>$@ + @echo $(wordlist 2100,2399,$^)>>$@ + @echo $(wordlist 2400,2699,$^)>>$@ + @echo $(wordlist 2700,2999,$^)>>$@ + @echo $(wordlist 3000,$(words $^),$^)>>$@ -$(outdir)/collated-files.tely: $(LY_FILES) $(OUT_LY_FILES) - $(PYTHON) $(buildscript-dir)/lys-to-tely.py --name=$(outdir)/collated-files.tely --title="$(TITLE)" $^ - +$(outdir)/collated-files.tely: $(outdir)/collated-files.list + $(LYS_TO_TELY) --name=$(outdir)/collated-files.tely --title="$(TITLE)" --author="$(AUTHOR)" --input-filename=$^