I add a STLIBS variable in Makefiles as normal prerequisite. Then, for example, if you update something in psqlscan.l, then make will rebuild psql automatically.
Since I don't know if the la
c
k of dependency is problem or not, this patch maybe useless.