vala Makefile: define an empty .SUFFIXES.
authorSimon Tatham <anakin@pobox.com>
Sun, 12 May 2019 09:05:23 +0000 (10:05 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 13 May 2019 08:20:39 +0000 (09:20 +0100)
commit4ed78635db196846b58a28ae1ce0340de558db17
treea10f534ec60ddc3bf0da621739648db880a9b1ae
parentc424b18de1a42081417b375daaab12efd8a22e61
vala Makefile: define an empty .SUFFIXES.

This fixes an annoying make behaviour where, if the Vala compiler
leaves around a file called foo.vala.c (as it does in some forms of
compile failure), make will automatically try to rebuild foo.vala from
it. This fails, because a single valac-output source file will
basically never compile using make's default cc command – and it's
lucky it does fail, because it would overwrite a real Vala source file
if it didn't!

Defining .SUFFIXES to the empty string suppresses all the built-in
things GNU make thinks it knows about how to compile things, and
forces it to rely only on the rules actually written down in this
Makefile.
vala/Makefile