diff --git a/Makefile b/Makefile index f45cd249c9501cd7d289008f62d17cc17c11f563..8fd1500035653f94b6405fb04280900162626084 100644 --- a/Makefile +++ b/Makefile @@ -122,7 +122,7 @@ edit: $(SRCNAMES) test -s $(@:.pdf=.cit) || echo '' | $(MD5SUM) > $(@:.pdf=.cit) @echo If the citations were updated recompile the .bbl file - grep -o -G "Citation \`[^']*" $(@:.pdf=.log) | $(MD5SUM) -c --status $(@:.pdf=.cit) || -rm *.bbl; $(MAKE) bibtex; $(PDF) $(@:.pdf=.tex) >/dev/null + grep -o -G "Citation \`[^']*" $(@:.pdf=.log) | $(MD5SUM) -c --status $(@:.pdf=.cit) || rm -f *.bbl; $(MAKE) bibtex; $(PDF) $(@:.pdf=.tex) >/dev/null @echo -n "Search for dangling references.. " @if grep -q "Rerun to get cross-references right." $(@:.pdf=.log); \