blob: f71be85edef5be8fb8a776742444ca37db408e0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
PROJET=polynom
all: $(PROJET).dvi
$(PROJET).dvi: bib.tex conclusion.tex description.tex intro.tex manuel.tex outils.tex polynom.tex source.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 de la librairie}' >> source.tex
for i in `find ../lib -name *.c` ; do echo "\subsection{`basename $$i`}"; echo "\lstinputlisting{$$i}"; done >> source.tex
echo '\section{Sources du frontend}' >> source.tex
for i in `find ../src -name *.c` ; 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
|