BUILDDIR = build SRCS = ib_verbs.py rdma_cm_verbs.py nodetype_functions.py TEXS = $(patsubst %.py, $(BUILDDIR)/%.tex, $(SRCS)) all: ${BUILDDIR} $(TEXS) $(BUILDDIR)/%.tex: %.py dict_to_table.py ./$< mv $*.tex $(BUILDDIR) ${BUILDDIR}: mkdir -p ${BUILDDIR} clean: rm -rf $(BUILDDIR) .PHONY: clean