Do not remove distributed configure script
Before this patch the clean target has removed the configure script that comes with Git tar file. That made compiling Git for different architectures inconvenient. This patch excludes configure from the files to be deleted by 'make clean' and adds new target 'distclean' to preserve old functionality. Signed-off-by: Mathias Megyei <mathias@mnet-mail.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Mathias Megyei committed
Oct 4, 2007 at 23:49 UTC
922aa807f5fee97fcb2ccd1d1db63b59bdd02128
1 file changed
+4
-1
Makefile
+4
-1
@@ -1066,6 +1066,9 @@ dist-doc:
1066
1067
### Cleaning rules
1068
1069
+distclean: clean
1070
+ $(RM) configure
1071
+
1072
clean:
1073
$(RM) *.o mozilla-sha1/*.o arm/*.o ppc/*.o compat/*.o xdiff/*.o \
1074
$(LIB_FILE) $(XDIFF_LIB)
@@ -1073,7 +1076,7 @@ clean:
1076
$(RM) $(TEST_PROGRAMS)
1077
$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags
1078
$(RM) -r autom4te.cache
1076
- $(RM) configure config.log config.mak.autogen config.mak.append config.status config.cache
1079
+ $(RM) config.log config.mak.autogen config.mak.append config.status config.cache
1080
$(RM) -r $(GIT_TARNAME) .doc-tmp-dir
1081
$(RM) $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz
1082
$(RM) $(htmldocs).tar.gz $(manpages).tar.gz