Script-based Website Maintenance



Assembly rules

You need to make two Makefiles, a global one and a site-specific one. You can do it all in one, but if you maintain several sites, a lot of the stuff here will be common to all of them. This way, you can add new features to all of them at once.

Global Makefile

Many of the rules you use to generate a website will not change for another site, so it makes sense to put these in a make include-file. Put them in the file include/buildwww.mk in your general directory.

The file should have the following parts:

Site-specific Makefile

Create a file Makefile in your site-specific directory. It should consist of:

Building the files

To build (or rebuild) the files of your website, go into the directory containing its makefile, and type:

$ make

This will build the required files in $(WWWPREFIX) that do not already exist, or are not up-to-date with respect to their sources. Intermediate files are created in var.



Updated: 2007-May-11 16:56 GMT
Contact Steven Simpson

Ĉi tiu paĝo disponeblas ĉi-lingve, laŭ via krozila agordo.