diff options
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -25,10 +25,13 @@ $(HTML) $(LINK): $(HTMLDIR)/.ready $(HTMLDIR)/index.html: $(HTMLDIR)/quip-0000.html $Q [ -h $@ ] || (cd $(@D) && ln -s $(<F) $(@F)) -$(HTMLDIR)/quip-0000.html: scripts/gen-quip-0000.py scripts/quip2html.py $(RST) template.html - scripts/gen-quip-0000.py $(RST) | scripts/quip2html.py - >$@ -$(RSTHTML): $(HTMLDIR)/%.html: %.rst scripts/quip2html.py template.html - scripts/quip2html.py $< >$@ +GEN0 = scripts/gen-quip-0000.py +Q2HT = scripts/quip2html.py + +$(HTMLDIR)/quip-0000.html: $(GEN0) $(Q2HT) $(RST) template.html + $(GEN0) $(RST) | $(Q2HT) - >$@ +$(RSTHTML): $(HTMLDIR)/%.html: %.rst $(Q2HT) template.html + $(Q2HT) $< >$@ template.html: $(QUIP_TEMPLATE) $Q rm -f $@; ln -s $< $@ |