summaryrefslogtreecommitdiff
path: root/doc/Makefile.doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile.doc')
-rw-r--r--doc/Makefile.doc16
1 files changed, 14 insertions, 2 deletions
diff --git a/doc/Makefile.doc b/doc/Makefile.doc
index e824e89..f72d54b 100644
--- a/doc/Makefile.doc
+++ b/doc/Makefile.doc
@@ -13,7 +13,19 @@ $(PROJET).dvi: archi.tex bib.tex compilateur.tex conclusion.tex description.tex
latex $(PROJET)
source:
- for i in `find .. -name "*.c" -or -name "*.h" | grep -v /intl/ | grep -v /po/`; do echo "\paragraph{$$i}"; echo "\lstinputlisting{$$i}"; done > 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
+ echo '\subsection{Librairie assembleur}' >> source.tex
+ for i in ../lib/meta.c ../lib/parser.c ../lib/assembler.c ; do echo "\subsubsection{`basename $$i`}"; echo "\lstinputlisting{$$i}"; done >> source.tex
+ echo '\subsection{Librairie linker}' >> source.tex
+ for i in ../lib/linker.c ; do echo "\subsubsection{`basename $$i`}"; echo "\lstinputlisting{$$i}"; done >> source.tex
+ echo '\subsection{Librairie simulateur}' >> source.tex
+ for i in ../lib/simulator.c ../lib/registre.c ../lib/memoire.c ../lib/alu.c ../lib/fpu.c ../lib/interne.c ; do echo "\subsubsection{`basename $$i`}"; echo "\lstinputlisting{$$i}"; done >> source.tex
+ echo '\subsection{Sources divers}' >> source.tex
+ for i in ../lib/exceptions.c ../lib/hash.c ../lib/numbers.c ../lib/terminal.c ; do echo "\subsubsection{`basename $$i`}"; echo "\lstinputlisting{$$i}"; done >> source.tex
+ echo '\section{Sources des frontends}' >> source.tex
+ for i in `find ../src -name *.c` ; do echo "\subsection{`basename $$i`}"; echo "\lstinputlisting{$$i}"; done >> source.tex
ps: $(PROJET).ps
@@ -21,4 +33,4 @@ $(PROJET).ps: $(PROJET).dvi
dvips $(PROJET)
clean:
- rm -f *.dvi *.aux *.toc *.ps *.log
+ rm -f *.dvi *.aux *.toc *.ps *.log source.tex