This is a method of using dia to diagram the data model. Dia can produce .png format files on the command line, so I wrote a makefile which produces datamodel.png from datamodel.dia and also contains a pattern rule to produce any.png from any.dia.
Requirements for running the make: - gnu make - dia