Makefile
branchv_0
changeset 51 21dfb69028a0
parent 49 1dc027689f93
child 54 9f5de01bfd30
equal deleted inserted replaced
50:1934fc6e5e7b 51:21dfb69028a0
     1 # Sane Software Manifesto helper tools
     1 # Sane software manifesto helper tools
     2 # Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
     2 # Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
     3 #
     3 #
     4 # This program is free software: you can redistribute it and/or modify
     4 # This program is free software: you can redistribute it and/or modify
     5 # it under the terms of the GNU General Public License as published by
     5 # it under the terms of the GNU General Public License as published by
     6 # the Free Software Foundation, version 3.
     6 # the Free Software Foundation, version 3.
    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 VERSION_PARAMS := $(shell hg log -r '.' --template '--stringparam versionTag {latesttag} --stringparam versionDistance {latesttagdistance} --stringparam versionHash {node|short}') 
    16 VERSION_PARAMS := $(shell hg log -r '.' --template '--stringparam versionTag {latesttag} --stringparam versionDistance {latesttagdistance} --stringparam versionHash {node|short}') "--stringparam" "versionChangedFiles" $(shell hg status | wc -l) 
    17 
    17 
    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
    43 
    43 
    44 clean:
    44 clean:
    45 	rm -rf build
    45 	rm -rf build
    46 
    46 
    47 publish:
    47 publish:
    48 	scp build/* globalcode.info:/var/www/sane-software.globalcode.info/v_0/
    48 	scp build/*     globalcode.info:/var/www/sane-software.globalcode.info/v_0/
       
    49 	scp license/*   globalcode.info:/var/www/sane-software.globalcode.info/license/
    49 
    50 
    50 
    51 
    51 build/statistics.rp: text/ssm.en.xml
    52 build/statistics.rp: text/ssm.en.xml
    52 	mkdir -p build
    53 	mkdir -p build
    53 	cat text/ssm.en.xml \
    54 	cat text/ssm.en.xml \
    65 # Prints a table with number of items in particular chapters:
    66 # Prints a table with number of items in particular chapters:
    66 statistics: build/statistics.rp
    67 statistics: build/statistics.rp
    67 	cat build/statistics.rp | relpipe-out-tabular
    68 	cat build/statistics.rp | relpipe-out-tabular
    68 	
    69 	
    69 statistics-chart: build/statistics.rp
    70 statistics-chart: build/statistics.rp
    70 	cat build/statistics.rp | relpipe-tr-cut ".*" "(name|.*s)" | relpipe-out-gui -title "Sane Software Manifesto – chart of rule types"
    71 	cat build/statistics.rp | relpipe-tr-cut ".*" "(name|.*s)" | relpipe-out-gui -title "Sane software manifesto – chart of rule types"