vmime/doc/book/images/Makefile

17 lines
670 B
Makefile
Raw Normal View History

2013-02-03 13:44:52 +00:00
# Either Inkscape or ImageMagick is needed for converting from SVG to PNG.
# Please note that Inkscape gives better results, though.
SHELL=bash # fix for 'echo -n' on MacOS X
2005-11-06 16:16:15 +00:00
build-makefile:
@echo "# Auto-generated file" > Makefile2
@echo ".SUFFIXES: .png .svg" >> Makefile2
@echo -n "foo: " >> Makefile2
2013-02-03 13:44:52 +00:00
@for f in *.svg ; do (echo -n `basename "$$f" .svg`'.png ') >> Makefile2 ; done
2005-11-06 16:16:15 +00:00
@echo >> Makefile2
@echo " @echo -n" >> Makefile2
@echo ".svg.png:" >> Makefile2
@echo ' echo Converting $$<' >> Makefile2
2013-02-03 13:44:52 +00:00
@echo ' ( inkscape -b "#ffffff" -w 1000 -e $$@ $$< || convert -background none -density 300 -resize 1000x $$< $$@ )' >> Makefile2
2005-11-06 16:16:15 +00:00
@make -f Makefile2