blob: 396d6a3ed0b38e64c64b3578e1171ff052163487 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# 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. <http://creativecommons.org/licenses/by-sa/4.0/>
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
|