DOCUMENT = xbee-arduino

TXT2TAGS = txt2tags

html:
	$(TXT2TAGS) --config-file=include/config-html.t2t textes/$(DOCUMENT).t2t

web:
	$(TXT2TAGS) --config-file=include/config-web.t2t textes/$(DOCUMENT).t2t

tex:
	$(TXT2TAGS) --config-file=include/config-tex.t2t textes/$(DOCUMENT).t2t

pdf:
	pdflatex -interaction batchmode textes/$(DOCUMENT).tex

clean:
	rm $(DOCUMENT).aux $(DOCUMENT).log $(DOCUMENT).toc $(DOCUMENT).out texput.log
	
thumb:
	rm -rf images/thumb_620x620
	mogrify -resize 620x620\> -path images/thumb_620x620 images/large/*.*
	%rm -rf images/thumb_800x550
	%mogrify -resize 800x550\> -path images/thumb_800x550 images/large/*.*
