]> git.donarmstrong.com Git - lilypond.git/blob - make/ports-rules.make
patch::: 1.3.140.jcn6
[lilypond.git] / make / ports-rules.make
1 ifeq ($(zipped),)
2 %.ly:
3         wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@
4         $(MAKE) local-convert-ly
5 else
6 %.zip:
7         wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@
8
9 %.ly:   %-lys.zip
10         unzip -n $<
11         $(MAKE) local-convert-ly
12 endif
13
14 %/GNUmakefile:
15         mkdir -p $(@D)
16         $(if $(shell grep '[.]ly' $(@D)/index.html), \
17                 echo 'mutopia-name = $(@D)' > $@, \
18                 $(if $(shell grep '[.]zip' $(@D)/index.html), \
19                         echo -e 'zipped = true\nmutopia-name = $(@D)' > $@))
20         echo -e $(GNUmakefile) >> $@
21
22