summaryrefslogtreecommitdiff
path: root/doc/Makefile.doc
blob: f72d54bc01ed3a1a7c59f9724a1db04eae16282f (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
31
32
33
34
35
36
PROJET=archi

all: $(PROJET).dvi

$(PROJET).dvi: archi.tex bib.tex compilateur.tex conclusion.tex description.tex encodage.tex extensions.tex intro.tex simulateur.tex Compilo.eps
	echo 
	echo pass1
	echo
	latex $(PROJET)
	echo
	echo pass2
	echo
	latex $(PROJET)

source:
	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

$(PROJET).ps: $(PROJET).dvi
	dvips $(PROJET)

clean:
	rm -f  *.dvi *.aux *.toc *.ps *.log source.tex