aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index c3176a1..abc430c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,10 +31,17 @@ moddir = $(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
godir = $(prefix)/lib/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
assetsdir = $(datadir)/@PACKAGE@
-install-data-local:
+README.html: README
+ emacs -q --no-splash -batch -visit README \
+ -eval "(progn (require 'org) (let ((org-export-htmlize-output-type 'css)) (org-html-export-to-html nil nil nil t nil)))"
+
+install-data-local: README.html
mkdir -p "$(DESTDIR)$(pkgdatadir)" || exit 1;
cp -r assets "$(DESTDIR)$(pkgdatadir)/" || exit 1;
cp -r sqitch "$(DESTDIR)$(pkgdatadir)/" || exit 1;
+ mkdir -p "$(DESTDIR)$(docdir)";
+ cp README "$(DESTDIR)$(docdir)/README"
+ cp README.html "$(DESTDIR)$(docdir)/README.html"
install-data-hook:
# These files shouldn't be installed, but I have no idea how to specify that