CXXFLAGS=-Wall -pedantic -std=c++11 -g -Wno-sign-compare
LINK.o = $(LINK.cc)

PROGRAMS=$(filter-out debogage.cpp, $(wildcard *.cpp))
TARGET=$(PROGRAMS:%.cpp=%)
NOTEBOOKS=$(wildcard *.ipynb)

all: $(TARGET)

clean:
	-rm $(TARGET)

pdf: $(NOTEBOOKS:%.ipynb=%.pdf)

%.pdf: %.ipynb
	jupyter nbconvert --template exemple.tplx --execute --allow-errors --to pdf $<

%.tex: %.ipynb
	jupyter nbconvert --template exemple.tplx --execute --allow-errors --to latex $<
