create changelog with html target
[BackupPC.git] / Makefile
index 111ff51..d6c7547 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,8 @@ index: test
        sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i
 
 xls: test
-       sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report && cp -vf /tmp/report.xls ~/public_html/
+       sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
+       which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
 
 asa:
        rm -Rf $(tmp)
@@ -42,6 +43,9 @@ asa:
        rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
        rm -Rf $(tmp)
 
+html:
+       test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
+
 profile: test
        test -e tmon.out || touch tmon.out
        sudo chown backuppc tmon.out