diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-17 01:49:54 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-17 01:49:54 +0200 |
commit | 5b2a1813069ed9dfa2f4c5af56495aa051e67833 (patch) | |
tree | cd1633e03bdaf8482f601f4a9ffe79883c17886e /Makefile | |
parent | 11f03af4d82b1c23abade136eda4fabe8d32200d (diff) |
Move external resources to "lib" folder, update makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -21,15 +21,20 @@ all: script/ousia.js style/style.css $(TARGET_XML) $(TARGET_HTML) # On Fedora you can install lessc using the following commands (as root): # yum install nodejs npm # npm install -g less less-plugin-clean-css -style/style.css: style/*.less - lessc style/style.less style/style.css --clean-css="--s1" +style/style.css: style/*.less style/lib/*.css + 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 +script/ousia.js: script/lib/*.js + uglifyjs \ + script/lib/prism.js \ + script/lib/prism_bash.js \ + script/highlight.js > script/ousia.js # Compile all osml files to xml %.xml: %.osml ontology/*.osml @@ -42,6 +47,7 @@ script/ousia.js: script/prism.js script/prism_bash.js script/highlight.js # Clean script, remove all target files clean: rm -f style/*.css + rm -f script/ousia.js rm -f $(TARGET_HTML) rm -f $(TARGET_XML) rm -f *~ style/*~ ontology/*~ xsl/*~ @@ -57,6 +63,8 @@ webclean: test ! -e .git find style/ -type f -not -name "style.css" -delete find script/ -type f -not -name "ousia.js" -delete + rmdir script/lib + rmdir style/lib rm -f $(TARGET_XML) rm -f $(SOURCE_OSML) rm -rf ontology www-src |