summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pointRuler/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/pointRuler/Makefile
Initial commit
Diffstat (limited to 'macros/latex/contrib/pointRuler/Makefile')
-rw-r--r--macros/latex/contrib/pointRuler/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/macros/latex/contrib/pointRuler/Makefile b/macros/latex/contrib/pointRuler/Makefile
new file mode 100644
index 0000000000..6b31523e49
--- /dev/null
+++ b/macros/latex/contrib/pointRuler/Makefile
@@ -0,0 +1,41 @@
+##################
+# Setup commands #
+##################
+CC=gcc
+LaTeX=latex
+DVIPS=dvips
+PS2EPS=./ps2eps
+####################
+# List LaTeX files #
+####################
+PiCTeX = points.tex \
+ inches.tex
+##########################
+# Rules and dependencies #
+##########################
+all: ruler
+
+ruler: ruler.ps
+ $(PS2EPS) -f -l ruler.ps
+
+ruler.ps: ruler.dvi
+ $(DVIPS) -Ppdf -t legal -o ruler.ps ruler.dvi
+
+ruler.dvi: ruler.tex
+ $(LaTeX) ruler.tex
+
+ruler.tex: points.tex inches.tex
+
+points.tex: points.c
+ $(CC) -o points points.c
+ ./points
+
+inches.tex: inches.c
+ $(CC) -o inches inches.c
+ ./inches
+
+############
+# Clean up #
+############
+clean:
+ rm -f inches.tex inches points.tex points ruler.dvi ruler.aux ruler.log ruler.ps