[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 45e9dcc 2/2: Support generating readme.html from README
From: |
Stefan Kangas |
Subject: |
[elpa] master 45e9dcc 2/2: Support generating readme.html from README |
Date: |
Sat, 28 Nov 2020 07:23:16 -0500 (EST) |
branch: master
commit 45e9dccf8d957683717ee8db483f53af30a33ca1
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Support generating readme.html from README
* GNUmakefile (readme): Add new target 'readme'.
* .gitignore: Ignore html/readme.html.
---
.gitignore | 3 +++
GNUmakefile | 6 ++++++
2 files changed, 9 insertions(+)
diff --git a/.gitignore b/.gitignore
index a903fae..fdaa7ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,6 @@ core
/archive
*.log
*.buildlog
+
+# generated html
+html/readme.html
diff --git a/GNUmakefile b/GNUmakefile
index 5fddd39..2c02917 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -96,6 +96,12 @@ org-fetch: archive-tmp
clean:
rm -rf archive $(ARCHIVE_TMP) $(SITE_DIR)
+.PHONY: readme
+readme:
+ $(EMACS) --eval "(progn (require 'org) \
+ (find-file \"README\")\
+ (org-export-to-file 'html \"html/readme.html\"))"
+
########## Rules for in-place installation ####################################
pkgs := $(foreach pkg, $(wildcard packages/*), \
$(if $(shell [ -d "$(pkg)" ] && echo true), $(pkg)))