Commit 388f25dd authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Refactor away old-fashioned make syntax

parent 53916e29
...@@ -148,22 +148,20 @@ clean: ...@@ -148,22 +148,20 @@ clean:
# Suffix rules # Suffix rules
######################################### #########################################
.SUFFIXES: .hi .hs .verb .tex .dvi %.tex: %.verb
.verb.tex:
$(EXPAND) < $< | $(VERBATIM) | sh ../tools/subsection >$@ $(EXPAND) < $< | $(VERBATIM) | sh ../tools/subsection >$@
# The 'subsection' part changes section -> chapter for the book style # The 'subsection' part changes section -> chapter for the book style
.hs.verb: %.verb: %.hs
$(EXPAND) < $< | $(SPLITPGM) >$@ $(EXPAND) < $< | $(SPLITPGM) >$@
%.tex: %.hs %.hs: %.tex
$(EXPAND) < $< | $(SPLITPGM) | $(VERBATIM) >$@ $(EXPAND) < $< | $(SPLITPGM) | $(VERBATIM) >$@
.hi.tex: %.tex: %.hi
$(EXPAND) < $< | $(SPLITPGM) | $(VERBATIM) >$@ $(EXPAND) < $< | $(SPLITPGM) | $(VERBATIM) >$@
.tex.dvi: %.dvi: %.tex
$(LATEX) $< $(LATEX) $<
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment