# Settings TARGET=slide CONVERT=pdf2svg vpath pdf images IMAGES=$(wildcard images/*.pdf) IMAGES_FOR_SLIDE=$(subst .pdf,.svg,$(IMAGES)) # dependencies $(TARGET).html : $(TARGET).md $(IMAGES_FOR_SLIDE) slideshow build -t s6cr $< %.svg: %.pdf $(CONVERT) $< $@ # commands .PHONY : clean all open remake clean: rm -rf *.html s6 scripts all: $(TARGET).html open: $(TARGET).html open $(TARGET).html remake: make clean make all