File: lysdoc-rules.make

package info (click to toggle)
lilypond 2.19.83-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 76,396 kB
  • sloc: cpp: 79,385; ansic: 75,071; lisp: 59,263; xml: 31,196; python: 22,406; sh: 8,159; yacc: 3,872; perl: 3,507; asm: 1,587; lex: 1,408; makefile: 1,048; tcl: 457; awk: 199; php: 53; csh: 50
file content (19 lines) | stat: -rw-r--r-- 868 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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: $(outdir)/collated-files.list
	$(LYS_TO_TELY) --name=$(outdir)/collated-files.tely --title="$(TITLE)" --author="$(AUTHOR)" --input-filename=$^