Skip to content

Commit 922aa80

Browse files
Mathias Megyeispearce
authored andcommitted
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 <[email protected]> Signed-off-by: Lars Hjemli <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent c005c6a commit 922aa80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,14 +1066,17 @@ dist-doc:
10661066

10671067
### Cleaning rules
10681068

1069+
distclean: clean
1070+
$(RM) configure
1071+
10691072
clean:
10701073
$(RM) *.o mozilla-sha1/*.o arm/*.o ppc/*.o compat/*.o xdiff/*.o \
10711074
$(LIB_FILE) $(XDIFF_LIB)
10721075
$(RM) $(ALL_PROGRAMS) $(BUILT_INS) git$X
10731076
$(RM) $(TEST_PROGRAMS)
10741077
$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags
10751078
$(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
10771080
$(RM) -r $(GIT_TARNAME) .doc-tmp-dir
10781081
$(RM) $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz
10791082
$(RM) $(htmldocs).tar.gz $(manpages).tar.gz

0 commit comments

Comments
 (0)