summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-22 01:14:35 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-22 01:14:35 +0100
commit93119091893c2f2bf396785e6bd7dcbb9b4f207d (patch)
tree408e37ec0bf4ebb1e5427f37b1e12344f70eae9c /Makefile
parentf6fc9fa292e8da56fe7078f9ac5bdfefa55abe94 (diff)
* Implement code highlighting using Prism
* Automatically build ousia.js
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
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 $@ $<