Makefile
author František Kučera <franta-hg@frantovo.cz>
Sat, 21 Sep 2019 01:17:44 +0200
branchv_0
changeset 21 2c064ad964cd
parent 20 fb939d9baaf4
child 25 8da11cce2c98
permissions -rw-r--r--
fix links/anchors

# Sane Software Manifesto helper tools
# Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

validate:
	xmllint --noout --schema ssm.xsd ssm.en.xml
xhtml:
	xsltproc --output ssm.en.xhtml --nonet ssm.xsl ssm.en.xml

clean:
	rm -f ssm.en.xhtml

publish:
	scp ssm.en.xhtml globalcode.info:/var/www/sane-software.globalcode.info/v_0/index.xhtml
	scp style.css    globalcode.info:/var/www/sane-software.globalcode.info/v_0/


# Prints a table with number of items in particular chapters:
statistics:
	cat ssm.en.xml \
	    | relpipe-in-xmltable \
		--namespace "m" "tag:globalcode.info,2019:sane-software/manifesto" \
		--relation "chapter" \
		    --records "//m:chapter" \
		    --attribute "name" string "m:name" \
		    --attribute "item_count" integer "count(descendant::m:item)" \
	    | relpipe-out-tabular
# try also relpipe-out-gui to get the chart