Rebuilding When a File's Checksum Changes

[article]

to pass the source file through tr to strip whitespace before handing it to md5sum for checksumming.

Conclusion

I hope this hack proves useful in your real Makefiles.  If you do use it, or improve it, drop me a line.

About the author

AgileConnection is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.