equal
deleted
inserted
replaced
11 # GNU General Public License for more details. |
11 # GNU General Public License for more details. |
12 # |
12 # |
13 # You should have received a copy of the GNU General Public License |
13 # You should have received a copy of the GNU General Public License |
14 # along with this program. If not, see <https://www.gnu.org/licenses/>. |
14 # along with this program. If not, see <https://www.gnu.org/licenses/>. |
15 |
15 |
16 all: validate xhtml txt |
16 all: validate xhtml txt pdf logo-png statistics |
17 |
17 |
18 validate: |
18 validate: |
19 xmllint --noout --schema schema/ssm.xsd text/ssm.en.xml |
19 xmllint --noout --schema schema/ssm.xsd text/ssm.en.xml |
20 |
20 |
21 xhtml: |
21 xhtml: |
22 mkdir -p build |
22 mkdir -p build |
23 xsltproc --output build/index.xhtml --nonet templates/ssm.xhtml.xsl text/ssm.en.xml |
23 xsltproc --output build/index.xhtml --nonet templates/ssm.xhtml.xsl text/ssm.en.xml |
24 cp templates/*.css build |
24 cp templates/*.css build |
25 cp templates/*.woff build |
25 cp templates/*.woff build |
|
26 |
|
27 pdf: |
|
28 mkdir -p build |
|
29 xsltproc --output build/ssm.en.fodt --nonet templates/ssm.odt.xsl text/ssm.en.xml |
|
30 libreoffice --convert-to pdf --outdir build build/ssm.en.fodt |
26 |
31 |
27 # TODO: better line wrapping |
32 # TODO: better line wrapping |
28 txt: |
33 txt: |
29 mkdir -p build |
34 mkdir -p build |
30 xsltproc --nonet templates/ssm.txt.xsl text/ssm.en.xml | fmt -w 74 -s | sed -E 's/( +)([^- ])/\1 \2/g' > build/ssm.en.txt |
35 xsltproc --nonet templates/ssm.txt.xsl text/ssm.en.xml | fmt -w 74 -s | sed -E 's/( +)([^- ])/\1 \2/g' > build/ssm.en.txt |