]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
Makefile: disable default implicit rules
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 26 Jan 2010 15:51:24 +0000 (09:51 -0600)
committerJonathan Nieder <jrnieder@gmail.com>
Tue, 26 Jan 2010 16:08:55 +0000 (10:08 -0600)
commit30248886ce89e5467ce734908775ed90b9138e99
treea2eb4a28cfc65a170a86f02f77a5f4a92d1c6ea1
parentbeeb4564bb7133fd12e6811a701686982b10cc2f
Makefile: disable default implicit rules

The git makefile never uses any default implicit rules.
Unfortunately, if a prerequisite for one of the intended rules is
missing, a default rule can be used in its place:

$ make var.s
    CC var.s
$ rm var.c
$ make var.o
    as   -o var.o var.s

Avoiding the default rules avoids this hard-to-debug behavior.
It also should speed things up a little in the normal case.

Future patches may restrict the scope of the %.o: %.c pattern.
This patch would then ensure that for targets not listed, we do
not fall back to the default rule.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Makefile