@@ -3693,7 +3693,7 @@ artifacts-tar:: $(ALL_COMMANDS_TO_INSTALL) $(SCRIPT_LIB) $(OTHER_PROGRAMS) \
htmldocs = git-htmldocs-$(GIT_VERSION)
manpages = git-manpages-$(GIT_VERSION)
-.PHONY: dist-doc distclean
+.PHONY: dist-doc distclean reallyclean
dist-doc: git$X
$(RM) -r .doc-tmp-dir
mkdir .doc-tmp-dir
@@ -3723,11 +3723,13 @@ dist-doc: git$X
### Cleaning rules
distclean: clean
- $(RM) configure
$(RM) config.log config.status config.cache
$(RM) config.mak.autogen config.mak.append
$(RM) -r autom4te.cache
+reallyclean: distclean
+ $(RM) configure
+
profile-clean:
$(RM) $(addsuffix *.gcda,$(addprefix $(PROFILE_DIR)/, $(object_dirs)))
$(RM) $(addsuffix *.gcno,$(addprefix $(PROFILE_DIR)/, $(object_dirs)))
make distclean conventionally restores the extracted release tarball to its original distributed contents by cleaning the source code for distribution. However, the configure script is part of the distribution and should not be removed. This behavior is creating problems on my package infrastructure where configure-based packages have make distclean run afterwards and then the subsequent git build fails. Add reallyclean for development that also removes configure. Signed-off-by: Jonas 'Sortie' Termansen <sortie@maxsi.org> --- Yeah -- I was thinking you'd want a reallyclean target or something, but wasn't sure what to call it. Here's a version with reallyclean: Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)