]> git.donarmstrong.com Git - lilypond.git/blob - make/ports-targets.make
patch::: 1.3.140.jcn3
[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 # too time-consuming?
36 # local-dist: local-ly-clean
37
38 local-help: local-ports-help
39
40 local-ports-help:
41         @echo -e "\
42   download    download .lys from $(MUTOPIA_MIRROR)\n\
43   ly-clean    move all .lys to $(outdir)\n\
44   sync        generate missing parts of tree\n\
45 "\
46