make clean removes documentation files that are part of the distribution tarball
Steps to reproduce:
1) svn co http://svn.xiph.org/trunk/theora
2) cd theora/
3) ./autogen.sh && make && make dist
4) cd ..
5) tar zxf theora/libtheora-1.2.0alpha1+svn.tar.gz
6) cd libtheora-1.2.0alpha1+svn/
7) git init
8) git add *
9) git commit -a -m 'state before build'
10) ./configure && make && make clean
11) git status
Expected results:
11) no files that were part of the distribution tarball are removed. (If they are removed them why were they included in the first place, how do I build the source twice?)
Actual results:
11) Some documentation files are removed:
# On branch master
# Changed but not updated:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: doc/libtheora/html/annotated.html
# deleted: doc/libtheora/html/bc_s.png
# deleted: doc/libtheora/html/classes.html
# deleted: doc/libtheora/html/closed.png
# deleted: doc/libtheora/html/codec_8h.html
# deleted: doc/libtheora/html/codec_8h_source.html
# deleted: doc/libtheora/html/doxygen.css
# deleted: doc/libtheora/html/doxygen.png
# deleted: doc/libtheora/html/files.html
# deleted: doc/libtheora/html/functions.html
# deleted: doc/libtheora/html/functions_vars.html
# deleted: doc/libtheora/html/globals.html
# deleted: doc/libtheora/html/globals_defs.html
# deleted: doc/libtheora/html/globals_enum.html
# deleted: doc/libtheora/html/globals_eval.html
# deleted: doc/libtheora/html/globals_func.html
# deleted: doc/libtheora/html/globals_type.html
# deleted: doc/libtheora/html/globals_vars.html
# deleted: doc/libtheora/html/group__basefuncs.html
# deleted: doc/libtheora/html/group__decfuncs.html
# deleted: doc/libtheora/html/group__encfuncs.html
# deleted: doc/libtheora/html/group__oldfuncs.html
# deleted: doc/libtheora/html/index.html
# deleted: doc/libtheora/html/modules.html
# deleted: doc/libtheora/html/nav_f.png
# deleted: doc/libtheora/html/nav_h.png
# deleted: doc/libtheora/html/open.png
# deleted: doc/libtheora/html/structth__comment.html
# deleted: doc/libtheora/html/structth__huff__code.html
# deleted: doc/libtheora/html/structth__img__plane.html
# deleted: doc/libtheora/html/structth__info.html
# deleted: doc/libtheora/html/structth__quant__info.html
# deleted: doc/libtheora/html/structth__quant__ranges.html
# deleted: doc/libtheora/html/structth__stripe__callback.html
# deleted: doc/libtheora/html/structtheora__comment.html
# deleted: doc/libtheora/html/structtheora__info.html
# deleted: doc/libtheora/html/structtheora__state.html
# deleted: doc/libtheora/html/structyuv__buffer.html
# deleted: doc/libtheora/html/tab_a.png
# deleted: doc/libtheora/html/tab_b.png
# deleted: doc/libtheora/html/tab_h.png
# deleted: doc/libtheora/html/tab_s.png
# deleted: doc/libtheora/html/tabs.css
# deleted: doc/libtheora/html/theora_8h.html
# deleted: doc/libtheora/html/theora_8h_source.html
# deleted: doc/libtheora/html/theoradec_8h.html
# deleted: doc/libtheora/html/theoradec_8h_source.html
# deleted: doc/libtheora/html/theoraenc_8h.html
# deleted: doc/libtheora/html/theoraenc_8h_source.html
# deleted: doc/libtheora/latex/Makefile
# deleted: doc/libtheora/latex/annotated.tex
# deleted: doc/libtheora/latex/codec_8h.tex
# deleted: doc/libtheora/latex/doxygen.sty
# deleted: doc/libtheora/latex/files.tex
# deleted: doc/libtheora/latex/group__basefuncs.tex
# deleted: doc/libtheora/latex/group__decfuncs.tex
# deleted: doc/libtheora/latex/group__encfuncs.tex
# deleted: doc/libtheora/latex/group__oldfuncs.tex
# deleted: doc/libtheora/latex/index.tex
# deleted: doc/libtheora/latex/modules.tex
# deleted: doc/libtheora/latex/refman.tex
# deleted: doc/libtheora/latex/structth__comment.tex
# deleted: doc/libtheora/latex/structth__huff__code.tex
# deleted: doc/libtheora/latex/structth__img__plane.tex
# deleted: doc/libtheora/latex/structth__info.tex
# deleted: doc/libtheora/latex/structth__quant__info.tex
# deleted: doc/libtheora/latex/structth__quant__ranges.tex
# deleted: doc/libtheora/latex/structth__stripe__callback.tex
# deleted: doc/libtheora/latex/structtheora__comment.tex
# deleted: doc/libtheora/latex/structtheora__info.tex
# deleted: doc/libtheora/latex/structtheora__state.tex
# deleted: doc/libtheora/latex/structyuv__buffer.tex
# deleted: doc/libtheora/latex/theora_8h.tex
# deleted: doc/libtheora/latex/theoradec_8h.tex
# deleted: doc/libtheora/latex/theoraenc_8h.tex
# modified: doc/spec/Theora.pdf
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# Makefile
# config.h
# config.log
# config.status
# doc/Doxyfile
# doc/Makefile
# doc/spec/.deps/
# doc/spec/Makefile
# examples/.deps/
# examples/Makefile
# include/Makefile
# include/theora/Makefile
# lib/.deps/
# lib/Makefile
# lib/arm/armopts.s
# libtool
# m4/Makefile
# stamp-h1
# tests/.deps/
# tests/Makefile
# theora-uninstalled.pc
# theora.pc
# theoradec-uninstalled.pc
# theoradec.pc
# theoraenc-uninstalled.pc
# theoraenc.pc
no changes added to commit (use "git add" and/or "git commit -a")