CC=gcc CFLAG= -O -g -o alldoc=python3 $(PWD)/.bin/alldoc objects=main.o\ playfield.o\ input_output.o headers=conf.h\ playfield.h\ input_output.h all:main %.o:%.c $(CC) -c $(CFLAG) $@ $< main: clean $(objects) $(CC) $(objects) $(CFLAG) main clean: rm $(objects) || true doc.rst:$(headers) $(alldoc) doc.rst.tmp $(headers) printf "Documentation\n_____________\n\n" > doc.rst cat doc.rst.tmp >> doc.rst rm doc.rst.tmp doc.pdf: rst2pdf doc.rst