SOURCES = $(wildcard *.tex) 
TIDIES = $(SOURCES:.tex=.tidied)

tidy: $(TIDIES)

%.tidied: %.tex
	# tidy command here.
	echo $<
	touch $@