0

Have a Makefile like this:

all: build

build:
        dot2tex -ftikz temporal_dag.dot --figonly > temporal_dag.tex
        latex notes && bibtex notes && latex notes && pdflatex notes

.PHONY: clean

clean:
        rm -v *.aux *.bbl *.blg *.dvi *.fdb_latexmk *.fls *.log *.out *.toc

But include clean like that seems to result in "make" failing. I think clean is running.

7
  • 1
    Could you please update your question with the exact command and output / errors you get ?
    – Soren A
    Commented Jan 22, 2020 at 9:51
  • 1
    Did you indent the line with rm -v using a TAB (ok) or spaces (wrong) ?
    – Walter A
    Commented Jan 22, 2020 at 10:03
  • @SorenA I don't get reproducible errors when I include clean which makes me think there is a race condition somewhere and the "rm" is running in the wrong order. I've tried to catch it running by printing in the logs but am still not sure what is going on yet.
    – safetyduck
    Commented Jan 22, 2020 at 11:35
  • And the errors are basically some variant of some of the files missing or something in the bibtex step going wrong.
    – safetyduck
    Commented Jan 22, 2020 at 11:36
  • 1
    In the build constructions I see latex notes twice. Which program makes the notes.aux, can this be done before the build step (target build depending on target helpfiles, and target helpfiles generating notes.aux) ?
    – Walter A
    Commented Jan 22, 2020 at 14:27

0

You must log in to answer this question.

Browse other questions tagged .