SRCS = $(wildcard *.odg) PDFS = $(patsubst %.odg,%.pdf,$(SRCS)) all: $(PDFS) %.pdf: %.odg libreoffice --convert-to pdf $< clean: rm -f *.pdf .PHONE: clean