all: html graphs
html: index.shtml
graphs: fat.png wdayhist.png
index.shtml: fat.xml fat2html FatXML.pm
./fat2html fat.xml > index.shtml
fat.png: fat.xml fat2graph FatXML.pm
./fat2graph fat.xml > fat.png
wdayhist.png: fat.xml fat2wdayhist FatXML.pm
./fat2wdayhist fat.xml > wdayhist.png
dist: FatXML.pm fat2html fat2graph fat2wdayhist Makefile
@rm -f fat.tar.gz
/bin/tar fcvz \
fat.tar.gz FatXML.pm fat2html fat2graph fat2wdayhist Makefile
test: fat.xml fat2html FatXML.pm
@perl -wc FatXML.pm
@perl -wc fat2html
@perl -wc fat2graph
@perl -wc fat2wdayhist
@echo Running fat2html...
@./fat2html fat.xml > /dev/null
@echo Running fat2graph...
@./fat2graph fat.xml > /dev/null
@echo Running fat2wdayhist...
@./fat2wdayhist fat.xml > /dev/null
@echo Done.
clean:
@rm -f index.shtml fat.png wdayhist.png fat.tar.gz core