sync/Makefile
author Krista Grothoff <krista@pep-project.org>
Mon, 13 Feb 2017 22:13:48 +0100
branchenigmail-color-tests
changeset 1582 7dd855780eef
parent 1513 e7f7e42385b5
child 1706 50fb48684347
permissions -rw-r--r--
closing branch
     1 
     2 # This file is under GNU General Public License 3.0
     3 # see LICENSE.txt
     4 
     5 include ../Makefile.conf
     6 
     7 all: .codegen
     8 
     9 skeleton: .actions
    10 
    11 .codegen: .statemachines .actions
    12 	cp -f generated/*.* ../src
    13 	touch .codegen
    14 
    15 .actions: devicegroup.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2
    16 	$(YML2PROC) -y gen_actions.ysl2 $< -o $@
    17 
    18 .statemachines: devicegroup.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2
    19 	$(YML2PROC) -y gen_statemachine.ysl2 $< -o $@
    20 
    21 .PHONY: clean
    22 
    23 clean:
    24 	rm -f *.xml *.xsl \
    25     $(pathsub generated/%, ../src/% $(wildcard generated/*.*)) \
    26     ../generated/* ../skeletons/* .statemachines .actions *.dot *.svg
    27 
    28 %.xml: %.fsm
    29 	yml2c $< -o $@
    30 
    31 %.dot: devicegroup.fsm gen_dot.ysl2
    32 	yml2proc -y gen_dot.ysl2 $<
    33 
    34 %.svg: %.dot
    35 	dot -Tsvg -o $@ $<