Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Makefile for images in latex (See related posts)

This is a Makefile to build images for use by pdflatex from .gnuplot command files and .py python scripts. It is supposed that the gnuplot/python files produce .eps images when launched

all: sinus.pdf sincos.pdf sine.pdf sine2.pdf sincos2.pdf bode.pdf

.PHONY: all clean

# we want all .gnuplot files to be 'made' into .eps files
# the % replaces any name
# in the rule: 	$< replaces the source
# 				$@ replaces the target
# example: convert $< $@
# 
%.eps: %.gnuplot
	gnuplot < $<

%.eps: %.py
	python $<

%.pdf: %.eps
	epstopdf $<
	
clean:
	rm -f *.eps *.pdf

You need to create an account or log in to post comments to this site.


Click here to browse all 5059 code snippets

Related Posts