PROJET=algo all: $(PROJET).dvi $(PROJET).dvi: source.tex algo.tex algorithmes.tex bib.tex conclusion.tex description.tex intro.tex manuel.tex outils.tex temps.tex structures.tex echo echo pass1 echo latex $(PROJET) echo echo pass2 echo latex $(PROJET) source.tex: echo '\section{Includes}' > source.tex for i in `find ../include -name *.h` ; do echo "\subsection{`basename $$i`}"; echo "\lstinputlisting{$$i}"; done >> source.tex echo '\section{Sources des librairies}' >> source.tex for i in `find ../lib -name *.c -or -name *.cc` ; do echo "\subsection{`basename $$i`}"; echo "\lstinputlisting{$$i}"; done >> source.tex echo '\section{Sources des frontends}' >> source.tex for i in `find ../src -name *.cc` ; do echo "\subsection{`basename $$i`}"; echo "\lstinputlisting{$$i}"; done >> source.tex ps: $(PROJET).ps $(PROJET).ps: $(PROJET).dvi dvips $(PROJET) clean: rm -f *.dvi *.aux *.toc *.ps *.log source.tex