Monday, November 24, 2008

A nasty Makefile bug

I copied a sample Makefile for PG’OCaml from Dario Teixeira’s tutorial, and it didn’t work, giving me circular dependencies on lines like

$(PROJECT): $(PROJECT).cmo

It turns out the first line,

$(PROJECT) := cellspans #contained a trailing space.

It would be useful to add a hook to TextMate Makefile mode to trim the trailing spaces upon save, and same with Emacs (the latter can surely do it).

No comments: