SHELL := /bin/bash LIBDIR := ../.. PROG := oxocb_make_all.py LIBSOURCES := ${wildcard ${LIBDIR}/*.py } all: ${PROG} ${LIBSOURCES} -rm -f out/*.svg out/*.txt export PYTHONPATH="in:${LIBDIR}:${STOLFIHOME}/lib:$${PYTHONPATH}"; \ python3 ${PROG} find out/ -name '*svg' -print | sort > .svgs @nf="`cat .svgs| wc -l`"; if [[ $${nf} -gt 0 ]]; then display out/*.svg ; fi