IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 503


Ignore:
Timestamp:
Apr 22, 2004, 11:42:32 AM (22 years ago)
Author:
Paul Price
Message:

Runs pdflatex twice if it works, otherwise deletes the pdf output
which isn't valid. It deletes the pdf because that way you can fix
the error and re-run make without deleting the broken pdf yourself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/Makefile

    r232 r503  
     1# Runs pdflatex twice if it works, otherwise deletes the pdf output which isn't valid.
     2# It deletes the pdf because that way you can fix the error and re-run make without
     3# deleting the broken pdf yourself.
    14%.pdf : %.tex
    25        @find . -name $*.aux -cnewer $*.tex -exec rm {} \;
     
    47                echo $(PDFLATEX) $*.tex; \
    58                env TEXINPUTS=.:LaTeX:: $(PDFLATEX) $*.tex; \
    6         fi; \
    7         env TEXINPUTS=.:LaTeX:: $(PDFLATEX) $*.tex
     9        fi && env TEXINPUTS=.:LaTeX:: $(PDFLATEX) $*.tex || $(RM) $*.pdf
    810#
    911PDFLATEX = pdflatex
Note: See TracChangeset for help on using the changeset viewer.