Hack building a HTML version of the README in to Makefile.am
This is to be able to serve a readable version of the README on the site, allowing those without Emacs to more easily read it.
This commit is contained in:
parent
ec1b2001cc
commit
f5ff0f8638
2 changed files with 11 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -14,6 +14,9 @@ build-aux/missing
|
||||||
tests/*.log
|
tests/*.log
|
||||||
tests/*.trs
|
tests/*.trs
|
||||||
|
|
||||||
|
README.html
|
||||||
|
README.html~
|
||||||
|
|
||||||
guix-data-service/config.scm
|
guix-data-service/config.scm
|
||||||
scripts/guix-data-service
|
scripts/guix-data-service
|
||||||
scripts/guix-data-service-process-job
|
scripts/guix-data-service-process-job
|
||||||
|
|
|
||||||
|
|
@ -31,10 +31,17 @@ moddir = $(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
|
||||||
godir = $(prefix)/lib/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
|
godir = $(prefix)/lib/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
|
||||||
assetsdir = $(datadir)/@PACKAGE@
|
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;
|
mkdir -p "$(DESTDIR)$(pkgdatadir)" || exit 1;
|
||||||
cp -r assets "$(DESTDIR)$(pkgdatadir)/" || exit 1;
|
cp -r assets "$(DESTDIR)$(pkgdatadir)/" || exit 1;
|
||||||
cp -r sqitch "$(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:
|
install-data-hook:
|
||||||
# These files shouldn't be installed, but I have no idea how to specify that
|
# These files shouldn't be installed, but I have no idea how to specify that
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue