MMD-CMS has support for "make"

02/26/2010 19:55:36
[an error occurred while processing this directive]

I’ve been quite happy with using MultiMarkdown-CMS to run my web site. The main frustration has been when I make a change that requires rebuilding the entire site. I had to use a bunch of commands to run MultiMarkdown over various directories and subdirectories in order to rebuild the entire site, and then remember to rebuild the vector map index so that the similar pages feature works.

Inspired by the Makefile support in Dr. Drang’s personal wiki project, I decided it was time to learn a little make myself…. After a little fiddling around, I created a Makefile that allows me to rebuild my entire site with one simple command:


If there are any text files that do not have a corresponding html file, make runs the proper command to generate the missing page(s). Then it runs the map_my_site command to rebuild the vector map. The nice thing is that if there are no new pages, the vector map is left alone.

This means that I can run the make command without fear of unnecessarily rebuilding anything. If any files have changed, they get rebuilt. If anything is missing, it gets rebuilt. Otherwise, leave it alone.

A bonus feature is that I can remove all of the html files with a simple:

make clean

Not sure why I would want to do this, but it’s neat that I can.

To use the make command, you will need to change the path to in Makefile to match your system. But that should be pretty straightforward.

[an error occurred while processing this directive] [an error occurred while processing this directive]