view presentation/Makefile @ 115:d731f2d0947d

Add Makefile
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Mon, 13 Feb 2017 17:15:10 +0900
parents
children
line wrap: on
line source

# 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