This is example 12 as described in the Wsmake User Manual.

We cover the depend attribute in this example. It would be good to
understand the other examples before attempting this one.

This example can be found in the doc/examples/ex12/ directory of the source
distribution.

The basic idea of a depend attribute is to extend the number of ways
a webpage can determine when it is to be remade. The value of the
depend attribute is the name of a file to watch for updates. A webpage
can have multiple depend attributes set. These dependencies are checked
only after all of the other built in checks have passed. An example use
of the depends attribute:

Page {
  web_page "index.html"
  depend   "depend.txt"
}

For the above case, after wsmake checks all of the normal checks for
index.html, it will check if the file "depend.txt" has been updated. If
it has, then it will cause the page to be remade.

The depend attribute can also be in a Theme section:

Theme {
  name "stuff"
  depend "themedepend.txt"
}

If the depend is updated, then every page that uses the theme will be
updated as well.

Note that for files not beginning with "/", the following actions occur:

For Pages:
  the file is considered relative to the source directory for the page

For Themes and PageGroups:
  the file is considered relative to the config directory

Globs can be used in the depend attribute value.

In addition to themes, entire PageGroup sections may use the depend
attribute:

PageGroup {
  database_filename "test.db"

  depend "ex12.ws"
}

As you can see above, the wsmake configuration file itself may be used
as a depend attribute.

Depend attributes only work when a database is used. The Timestamp
database format will simply ignore depend statements.

See the ex12.ws for example usage.

Ok, this is the end of example 12.
