.PHONY: all clean html info
images = hello-world.png hello-lily.png
all: info html
info: $(images)
makeinfo --no-split image-example.texi
html: $(images)
makeinfo --no-split --html image-example.texi
%.txt:
echo -n -e "alt \\\text\\\ for \"$*\\\"" > $@
%.png: %.txt
enscript -B -o - $< | gs -q -sDEVICE=pnggray -dNOPAUSE -sOutputFile=- - | convert -trim - $@
hello-lily.ly:
echo -n "\\score{ \\notes\\relative c'' { a b c } }" > $@
cp $@ hello-lily.txt
hello-lily.png: hello-lily.ly no-lily.png
ly2dvi --preview $< || cp no-lily.png $@
clean:
rm -f *.txt *.ly *.png *.html *.info *.ps *.dvi *~
upload:
$(MAKE) clean
cd .. && tar czf info-image/info-image.tar.gz info-image
scp -pr * lilypond.org:public_html/info-image