aboutsummaryrefslogtreecommitdiffstats
path: root/LaTex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'LaTex/Makefile')
-rw-r--r--LaTex/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/LaTex/Makefile b/LaTex/Makefile
new file mode 100644
index 0000000..b0fd0da
--- /dev/null
+++ b/LaTex/Makefile
@@ -0,0 +1,32 @@
+SOURCE = source.tex
+TARGET = output
+
+
+##################################################
+
+FLAGS=-interaction=nonstopmode -jobname=$(TARGET)
+
+OUTFILE_PDF=$(TARGET).pdf
+OUTFILE_LOG=$(TARGET).log
+OUTFILE_AUX=$(TARGET).aux
+
+##################################################
+
+.PHONY: all view clean
+
+all: $(OUTFILE_PDF)
+
+view: $(OUTFILE_PDF)
+ kde-open $(OUTFILE_PDF)
+
+clean:
+ -rm $(OUTFILE_PDF)
+ -rm $(OUTFILE_LOG)
+ -rm $(OUTFILE_AUX)
+
+$(OUTFILE_PDF): $(SOURCE)
+ xelatex $(FLAGS) $(SOURCE)
+
+two: $(SOURCE)
+ xelatex $(FLAGS) $(SOURCE)
+ xelatex $(FLAGS) $(SOURCE)