From 93119091893c2f2bf396785e6bd7dcbb9b4f207d Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 22 Mar 2015 01:14:35 +0100 Subject: * Implement code highlighting using Prism * Automatically build ousia.js --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e1ad72c..3288ec6 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ TARGET_XML=$(SOURCE_OSML:.osml=.xml) TARGET_HTML=$(SOURCE_OSML:.osml=.html) # Builds the style and all webpages -all: style/style.css $(TARGET_XML) $(TARGET_HTML) +all: script/ousia.js style/style.css $(TARGET_XML) $(TARGET_HTML) # Build the stylesheet using lessc # On Fedora you can install lessc using the following commands (as root): @@ -24,6 +24,13 @@ all: style/style.css $(TARGET_XML) $(TARGET_HTML) style/style.css: style/*.less lessc style/style.less style/style.css --clean-css="--s1" +# Build the JavaScript using uglifyjs +# On Fedora you can install uglifyjs using the following commands (as root): +# yum install nodejs npm +# npm install -g uglifyjs +script/ousia.js: script/prism.js script/prism_bash.js script/highlight.js + uglifyjs script/prism.js script/prism_bash.js script/highlight.js > script/ousia.js + # Compile all osml files to xml %.xml: %.osml ontology/*.osml ousia -F xml -o $@ $< -- cgit v1.2.3