X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjotex.git;a=blobdiff_plain;f=GNUmakefile;h=a5686c5ef82060b6aa812096ee81451789164796;hp=e61d7f24320990a550c0c96ef2b94a872a34ceb1;hb=6759e3a5bd5fd13bd239ee851c66d1eac83a7c1b;hpb=6ee5658942c8662c360f0b1fd47dca460f761f48 diff --git a/GNUmakefile b/GNUmakefile index e61d7f2..a5686c5 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -141,7 +141,7 @@ ifdef INDICES # dependency (see the bbl rule below) on the idx files to prevent us # from going into a rebuild loop when the idx files are regenerated. %.ind: $(SRCS) | %.idx - makeindex $< + makeindex $| endif # The pipe below indicates an "order-only dependency" on the aux file. @@ -175,9 +175,10 @@ $(PN).log: $(SRCS) $(MAKE) # How do we convert a raw listing into something testable by sage? We -# append/prepend triple quotes to make the whole thing into a doctest. +# append/prepend triple quotes to make the whole thing into a doctest, +# and then we replace any blank lines by "". sage_listings/%.py: sage_listings/%.listing - echo '"""' > $@ && cat $< >> $@ && echo '"""' >> $@ + echo '"""' > $@ && cat $< >> $@ && echo '"""' >> $@ && sed -i 's/^[[:space:]]*$$//' $@ # Ensure that there are no overfull or underfull boxes in the output # document by parsing the log for said warnings. @@ -186,7 +187,7 @@ check-boxes: $(PN).log @! grep -i 'overfull\|underfull' $< # Run chktex to find silly mistakes. There is some exit code weirdness -# (Savannah bug 45979), so we just look for empty output. +# (Savannah bug 53129), so we just look for empty output. .PHONY: check-chktex CHKTEX = chktex --localrc .chktexrc --quiet --inputfiles=0 check-chktex: @@ -205,9 +206,7 @@ check-undefined: $(PN).log .PHONY: check-sage check-sage: $(SAGE_LISTING_DSTS) ifdef SAGE_LISTING_DSTS - PYTHONPATH="$(HOME)/src/sage.d" \ - sage -t --timeout=0 --memlimit=0 \ - $^ + sage -t --timeout=0 --memlimit=0 $^ endif # Run a suite of checks.