branch: elpa-admin
commit cff34fa3f4e999c959f84a02668b4bd3ed431165
Author: Stefan Kangas <[email protected]>
Commit: Stefan Kangas <[email protected]>
Support generating readme.html from README
* GNUmakefile (readme): Add new target 'readme'.
* .gitignore: Ignore html/readme.html.
---
GNUmakefile | 6 ++++++
1 file changed, 6 insertions(+)
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)))