Makefile
branchv_0
changeset 67 78eca0b3ab5f
parent 54 9f5de01bfd30
child 71 cfd08606258a
equal deleted inserted replaced
66:6dff32230593 67:78eca0b3ab5f
    18 all: validate xhtml txt pdf logo-png statistics
    18 all: validate xhtml txt pdf logo-png statistics
    19 
    19 
    20 validate:
    20 validate:
    21 	xmllint --noout --schema schema/ssm.xsd text/ssm.en.xml
    21 	xmllint --noout --schema schema/ssm.xsd text/ssm.en.xml
    22 
    22 
    23 xhtml:
    23 xhtml: templates/cmunrm.woff templates/cmunbx.woff
    24 	mkdir -p build
    24 	mkdir -p build
    25 	xsltproc $(VERSION_PARAMS) --output build/index.xhtml --nonet templates/ssm.xhtml.xsl text/ssm.en.xml
    25 	xsltproc $(VERSION_PARAMS) --output build/index.xhtml --nonet templates/ssm.xhtml.xsl text/ssm.en.xml
    26 	cp templates/*.css build
    26 	cp templates/*.css build
    27 	cp templates/*.woff build
    27 	cp templates/*.woff build
       
    28 
       
    29 templates/cmunrm.ttf:
       
    30 	cd templates/; ln -s /usr/share/fonts/truetype/cmu/cmunrm.ttf
       
    31 
       
    32 templates/cmunbx.ttf:
       
    33 	cd templates/; ln -s /usr/share/fonts/truetype/cmu/cmunbx.ttf
       
    34 
       
    35 templates/cmunrm.woff: templates/cmunrm.ttf
       
    36 	cd templates/; sfnt2woff cmunrm.ttf
       
    37 
       
    38 templates/cmunbx.woff: templates/cmunbx.ttf
       
    39 	cd templates/; sfnt2woff cmunbx.ttf
    28 
    40 
    29 pdf:
    41 pdf:
    30 	mkdir -p build
    42 	mkdir -p build
    31 	xsltproc $(VERSION_PARAMS) --output build/ssm.en.fodt --nonet templates/ssm.odt.xsl text/ssm.en.xml
    43 	xsltproc $(VERSION_PARAMS) --output build/ssm.en.fodt --nonet templates/ssm.odt.xsl text/ssm.en.xml
    32 	libreoffice --convert-to pdf --outdir build build/ssm.en.fodt
    44 	libreoffice --convert-to pdf --outdir build build/ssm.en.fodt