[PD-dev] unittests and template Makefile merging

Hans-Christoph Steiner hans at at.or.at
Thu Nov 17 05:34:58 CET 2011


Hey Katya,

I incorporated your unittests changes into the template Makefile, that should make it easier to update the Makefiles of any lib you are adding unittests too. I don't know if you've used opendiff/FileMerge.app much, but it makes things like updating a libs Makefile from the template really easy.  You can use 'meld' on GNU/Linux or 'opendiff' on Mac OS X, which opens FileMerge.app.  Here's an example with opendiff:

opendiff Makefile ../template/Makefile -ancestor ~/code/pure-data/tags/externals/template/1.0.11/Makefile -merge Makefile

Makefile = the file to be updated
../template/Makefile = the most recent template Makefile
~/code/pure-data/tags/externals/template/1.0.11/Makefile = the "ancestor" template Makefile, use the version that is on the top of the current 'Makefile' and replace 1.0.11.

Basically, you'll want to choose the left side for the variables at the top (SOURCES, PD_OBJECTS, EXTRA_DIST, etc.)  And everything else should be pointing right.  Then hit Save, and it'll save into 'Makefile'.

.hc

----------------------------------------------------------------------------

Access to computers should be unlimited and total.  - the hacker ethic





More information about the Pd-dev mailing list