In the last episode (Jun 10), Bill Welliver said:
The only example for the "new style" modules is in the changes file (I'll include it below). If you're planning on distributing the module, such as with monger, the new style isn't really a viable option. I think the wording in the changes file is somewhat misleading, as the new module style doesn't really replace the old style for one of the most common scenarios (distributing a module).
-- CUT -- An example rather minimal 'pike -x module' compatible Makefile, without a configure script, using .cmod format files for a simple local module:
[...]
| install: Spike.so | cp $< $(MODULE_INSTALL_DIR)
[...]
| Spike.c: Spike.cmod | $(PIKE) -x precompile $< > $@
Note that using $< in target rules is not portable (it's only allowed in inference rules). Better to replace it with the source filename:
| install: Spike.so | cp Spike.so $(MODULE_INSTALL_DIR) [...] | Spike.c: Spike.cmod | $(PIKE) -x precompile Spike.cmod > $@