summaryrefslogtreecommitdiff
path: root/support/schemetex/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 /support/schemetex/makefile
Initial commit
Diffstat (limited to 'support/schemetex/makefile')
-rw-r--r--support/schemetex/makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/support/schemetex/makefile b/support/schemetex/makefile
new file mode 100644
index 0000000000..2177ced724
--- /dev/null
+++ b/support/schemetex/makefile
@@ -0,0 +1,47 @@
+# schemeTeX Makefile @(#)Makefile 1.3 88/06/30.
+CMDS = st schemeTeX
+
+DOCS = st.dvi reader.dvi
+
+TEXSTY = astyped.sty
+
+DEST = $(HOME)/bin
+
+TEXDEST = $(HOME)/inputs
+
+# Generic rules
+.SUFFIXES: .dvi .tex .st
+
+.st.dvi:
+ make $*.tex && make $*.dvi
+
+.st.tex:
+ st $*
+
+.tex.dvi:
+ latex $*
+
+# Generic commands.
+
+all: $(CMDS)
+
+doc: $(DOCS) $(CMDS)
+
+install: $(CMDS) $(TEXSTY)
+ mv $(CMDS) $(DEST)
+ cp $(TEXSTY) $(TEXDEST)
+
+clean:
+ -rm $(CMDS)
+
+# Specific commands.
+
+schemeTeX: schemeTeX.l
+ lex -t $? > schemeTeX.c
+ cc -O -o $@ schemeTeX.c -ll
+ rm schemeTeX.c
+
+st: st.sh
+ cp $? $@
+ chmod +x $@
+