Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4f7da3

Browse files
committed
Add .PHONY targets, to declare targets that aren't real files.
Immediate benefit: when you use "make -t" to avoid a global recompile after a trivial header file touchup, Make will no longer create files named all, oldsharedmods, and sharedmods. (Not sure if I tracked down all such targets. Not sure if I care.)
1 parent 6ce1315 commit d4f7da3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Makefile.pre.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,4 +929,12 @@ funny:
929929

930930
Python/thread.o: @THREADHEADERS@
931931

932+
# Declare targets that aren't real files
933+
.PHONY: all sharedmods oldsharedmods test quicktest memtest
934+
.PHONY: install altinstall oldsharedinstall bininstall altbininstall
935+
.PHONY: maninstall libinstall inclinstall libainstall sharedinstall
936+
.PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
937+
.PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
938+
.PHONY: recheck autoconf clean clobber distclean smelly funny
939+
932940
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY

0 commit comments

Comments
 (0)