update
authorMart Lubbers <mart@martlubbers.net>
Mon, 28 Sep 2015 08:45:48 +0000 (10:45 +0200)
committerMart Lubbers <mart@martlubbers.net>
Mon, 28 Sep 2015 08:45:48 +0000 (10:45 +0200)
1intro.tex [new file with mode: 0644]
Makefile
tt.tex

diff --git a/1intro.tex b/1intro.tex
new file mode 100644 (file)
index 0000000..7348099
--- /dev/null
@@ -0,0 +1,3 @@
+The objective of this document is to propose a testing approach for the
+Transmission Control Protocol as described in RFC793~\cite{rfc793}, from now on
+\textit{TCP}.
index e8a2b67..22cac39 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,14 @@
-SHELL:=/bin/bash
-LATEX=pdflatex
+LATEX:=pdflatex
 
-OUTPUT:=tt.pdf
-BASEOUTPUT:=$(basename $(OUTPUT))
+DOCUMENT:=tt
+SOURCES:=$(filter-out preamble.tex,$(shell ls *.tex))
 
-.SECONDARY: $(addsuffix .fmt,$(BASEOUTPUT))
+.SECONDARY: $(addsuffix .fmt,$(DOCUMENT))
 .PHONY: clobber graphs
 
-all: $(OUTPUT)
+all: $(DOCUMENT).pdf
 
-%.pdf: $(SOURCES) %.fmt
+%.pdf: %.tex %.fmt $(SOURCES)
        $(LATEX) $(basename $@)
        bibtex $(basename $@)
        $(LATEX) $(basename $@)
@@ -19,4 +18,4 @@ all: $(OUTPUT)
        $(LATEX) -ini -jobname="$(basename $@)" "&$(LATEX) $<\dump"
 
 clean:
-       $(RM) -v $(addprefix $(BASEOUTPUT).,fmt aux bbl blg dvi log out toc pdf)
+       $(RM) -v $(addprefix $(DOCUMENT).,fmt aux bbl blg dvi log out toc pdf)
diff --git a/tt.tex b/tt.tex
index 60b70b2..6b2c773 100644 (file)
--- a/tt.tex
+++ b/tt.tex
@@ -4,8 +4,9 @@
 \tableofcontents
 \newpage
 
+
 \section{Introduction}
-Hello World!~\cite{rfc793}.
+\input{1intro.tex}
 
 \newpage
 \bibliographystyle{plain}