SRC = $(wildcard *.dot) FMT = jpg OBJ = ${SRC:.dot=.${FMT}} VID = search.mp4 all: search recurse movie clean: rm -f *.${FMT} rm -f step*.dot rm -f ${VID} graphs: ${OBJ} recurse: @echo "Generating .${FMT}s..." @$(MAKE) graphs @echo "...done." search: @echo "Searching path..." @go run hamilton.go || echo "Found nothing." movie: @ffmpeg -y -f image2 -r 2/1 -i step%07d.jpg -c:v libx264 -s "1920x1080" ${VID} %.${FMT}: %.dot @neato $< -T${FMT} -o $@ .PHONY: all clean search graphs recurse movie