# Makefile for compiling the Ousía Homepage # # (c) Andreas Stöckel, 2015 # # This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 # International License. SOURCE_OSML=$(wildcard *.osml) TARGET_XML=$(SOURCE_OSML:.osml=.xml) TARGET_HTML=$(SOURCE_OSML:.osml=.html) .PHONY: all all: style/style.css $(TARGET_XML) $(TARGET_HTML) # Build the stylesheet using lessc # On Fedora you can install lessc using the following commands (as root): # yum install nodejs npm # npm install -g less style/style.css: style/*.less lessc style/style.less style/style.css #--clean-css="--s1" # Compile all osml files to xml %.xml: %.osml ontology/*.osml ousia -F xml -o $@ $< # Compile the xml files to html %.html: %.xml xsl/*.xsl xsltproc xsl/webpage.xsl $< > $@ # Clean script .PHONY: clean webclean clean: rm -f style/*.css rm -f $(TARGET_HTML) rm -f $(TARGET_XML) webclean: rm -f style/*.less rm -f $(TARGET_XML) rm -f $(SOURCE_OSML) rm -rf ontology