Selaa lähdekoodia

template and Makefile improvements

master
Dirk Alders 3 vuotta sitten
vanhempi
commit
af2221019b
2 muutettua tiedostoa jossa 16 lisäystä ja 12 poistoa
  1. 12
    8
      scripts/Makefile
  2. 4
    4
      templates/tex/requirement_specification.tex

+ 12
- 8
scripts/Makefile Näytä tiedosto

@@ -1,14 +1,18 @@
1
-.PHONY: all
2
-.PRECIOUS: %.tex
1
+TARGET=specification
3 2
 
4
-all: specification.pdf clean
3
+.PHONY: all tex pdf clean cleanall
5 4
 
6
-%.tex: %.reqif
7
-	python3 reqif/scripts/parse.py $<
5
+all: pdf clean
8 6
 
9
-%.pdf: %.tex
10
-	latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $<
7
+tex:
8
+	python3 reqif/scripts/parse.py $(TARGET).reqif
9
+	
10
+pdf: tex
11
+	latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $(TARGET).tex
11 12
 
12 13
 clean:
13
-	latexmk -c
14
+	latexmk -c -f $(TARGET).tex
14 15
 	rm -f *~ *.tex
16
+
17
+cleanall: clean
18
+	rm $(TARGET).pdf

+ 4
- 4
templates/tex/requirement_specification.tex Näytä tiedosto

@@ -9,18 +9,18 @@
9 9
 		{%- if item.system_type_uid == '_4-K5EHYYEem_kd-7nxt1sg' %}
10 10
 			\section{ {{macros.latex_filter(item.Heading)}} }
11 11
 		{%- elif item.system_type_uid == '_MR7eNHYYEem_kd-7nxt1sg' %}
12
-			\subsection{\xspace{}{{ macros.latex_filter(item.ID) }}: {{macros.latex_filter(item.Heading)}} }
12
+			\subsection{\xspace{}{{ item.ID }}: {{ item.Heading }} }
13 13
 			{%- if 'Description' in item and item.Description != '' %}
14
-				{{ macros.requirement_filter(item.Description) }}
14
+				{{ item.Description }}
15 15
 			 	{%- if 'ReasonForImplementation' in item and item.ReasonForImplementation != '' or 'Fitcriterion' in item and item.Fitcriterion != ''%}
16 16
 
17 17
 					\begin{tabu}{lX}
18 18
 					\toprule
19 19
 					{%- if 'ReasonForImplementation' in item and item.ReasonForImplementation != '' %}
20
-						\emph{Reason} & {{ macros.requirement_filter(item.ReasonForImplementation) }}\\
20
+						\emph{Reason} & {{ item.ReasonForImplementation }}\\
21 21
 					{%- endif %}
22 22
 					{%- if 'Fitcriterion' in item and item.Fitcriterion != '' %}
23
-						\emph{Fitcriterion} & {{ macros.requirement_filter(item.Fitcriterion) }}\\
23
+						\emph{Fitcriterion} & {{ item.Fitcriterion }}\\
24 24
 					{%- endif %}
25 25
 					\bottomrule
26 26
 					\end{tabu}

Loading…
Peruuta
Tallenna