#--*- Makefile -*--

# Convert all .txt files to PDF using 'pandoc'

TXT_FILES = $(wildcard *.txt)
PDF_FILES = ${TXT_FILES:%.txt=%.pdf}

.PHONY: all clean distclean spell

all: ${PDF_FILES}

%.pdf: %.txt
	pandoc -V fontenc:L7x $< -o $@

spell:
	aspell -x -p ./žodžiai.lst -l lt -c ${TXT_FILES}

clean:
	rm -f ${PDF_FILES}

distclean: clean
