Commit b53d1933 authored by Clément Elbaz's avatar Clément Elbaz
Browse files

The 'make clean' command attempts to clean various intermediate LaTeX files,...

The 'make clean' command attempts to clean various intermediate LaTeX files, including all files with extension idx. It happens that idx files are also an internal file extension for Git, and the current command deletes those as well. On my machine any use of the make clean command resulted in a corrupted local Git repository.

(more specifically the file ./.git/objects/pack/pack-c49c1de4ceec35c76b288915398aea0f2d87bfa1.idx)

This corrected 'make clean' ensures no file from the .git repository is ever deleted.
parent ba203905
......@@ -29,5 +29,5 @@ $(TARGET).pdf: $(SOURCE_FILES) $(BIB_FILES) $(FIGURES) these-ubl.cls
clean:
rm -f $(TARGET).{ps,pdf,bcf,run.xml}
for suffix in dvi aux bbl blg toc ind out brf ilg idx synctex.gz log; do \
find . -name "*.$${suffix}" -delete; \
find . -type d -name ".git" -prune -o -name "*.$${suffix}" -print | xargs -rt rm; \
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment