# Convert PDFs to text files.
#
# This makefile require GNU make to extract the PDF list.

PDF2TXT = pdftotext

PDFS = $(shell ls *.pdf)
TXTS = $(PDFS:.pdf=.txt)

all: $(TXTS)
	@echo "PDF: " $(PDFS)
	@echo "TXT: " $(TXTS)

.SUFFIXES: .pdf .txt

.pdf.txt:
	$(PDF2TXT) $<

