]> git.donarmstrong.com Git - lilypond.git/blob - make/ports-targets.make
Add support for max-systems-per-page.
[lilypond.git] / make / ports-targets.make
1
2 local-ly-clean:
3         $(if $(wildcard *.ly), -mv -f $(wildcard *.ly) $(outdir))
4
5 ly-clean: local-ly-clean
6         $(LOOP)
7
8 local-download: $(mutopia-examples:%=%.ly)
9         @echo downloading $<
10
11 download: local-download
12         $(LOOP)
13
14 #
15 # Lots smarter would be to do one recursive wget, getting all index.html,
16 # parse those with python script to setup tree.
17 #
18 local-sync:
19         wget --recursive --no-parent --level=1 --timestamping --dont-remove-listing --no-host-directories --accept=index.html $(MUTOPIA_MIRROR)/$(mutopia-dir)/
20 # ugh
21 # -mv ./ftp/$(mutopia-dir)/* .
22         cp -r ./ftp/$(mutopia-dir)/* .
23         rm -rf ./ftp
24         $(MAKE) 'dirs-before=$(dirs-before)' generate-GNUmakefiles
25
26 #
27 # should we dowload .ly and .zip just to fill-in tree?
28 #
29 sync: local-sync
30 #       wget --recursive --no-parent --timestamping --dont-remove-listing --no-host-directories --cut-dirs=2 --accept=foo $(MUTOPIA_MIRROR)/$(mutopia-dir)/
31         $(LOOP)
32
33 generate-GNUmakefiles: $(dirs-after:%=%/GNUmakefile)
34
35 truncate = $(filter-out %/GNUmakefile , $(wildcard */*))
36 trunc:
37         rm -fr $(truncate)
38
39 # too time-consuming?
40 # local-dist: local-ly-clean
41
42 local-help: local-ports-help
43
44 local-ports-help:
45         @echo -e "\
46   download    download .lys from $(MUTOPIA_MIRROR)\n\
47   ly-clean    move all .lys to $(outdir)\n\
48   sync        generate missing parts of tree\n\
49   trunc       truncate tree\n\
50 "\
51