www \
tests
-dist_doc_DATA = README COPYING NEWS AUTHORS INSTALL
-
-autostartdir = $(sysconfdir)/xdg/autostart
-autostart_DATA = psensor.desktop
+dist_doc_DATA = AUTHORS \
+ COPYING \
+ INSTALL \
+ NEWS \
+ NEWS.html \
+ README \
+ README.html
desktopdir = $(datadir)/applications
desktop_DATA = psensor.desktop
EXTRA_DIST = $(desktop_DATA) $(autostart_DATA)
+if ASCIIDOC
+README.html: README www/style.css
+ asciidoc --theme style -a themedir=`pwd`/www -n -a toc README
+NEWS.html: NEWS www/style.css
+ asciidoc --theme style -a themedir=`pwd`/www NEWS
+endif