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
vb@1513
     1
vb@1513
     2
# This file is under GNU General Public License 3.0
vb@1513
     3
# see LICENSE.txt
vb@1513
     4
vb@623
     5
include ../Makefile.conf
vb@618
     6
edouard@1467
     7
all: .codegen
vb@577
     8
edouard@1467
     9
skeleton: .actions
Edouard@610
    10
edouard@1467
    11
.codegen: .statemachines .actions
edouard@1467
    12
	cp -f generated/*.* ../src
edouard@1467
    13
	touch .codegen
edouard@1467
    14
edouard@1467
    15
.actions: devicegroup.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2
edouard@1467
    16
	$(YML2PROC) -y gen_actions.ysl2 $< -o $@
vb@623
    17
vb@809
    18
.statemachines: devicegroup.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2
vb@735
    19
	$(YML2PROC) -y gen_statemachine.ysl2 $< -o $@
vb@577
    20
vb@577
    21
.PHONY: clean
vb@577
    22
vb@577
    23
clean:
edouard@1467
    24
	rm -f *.xml *.xsl \
edouard@1467
    25
    $(pathsub generated/%, ../src/% $(wildcard generated/*.*)) \
edouard@1467
    26
    ../generated/* ../skeletons/* .statemachines .actions *.dot *.svg
vb@1409
    27
vb@1409
    28
%.xml: %.fsm
vb@1409
    29
	yml2c $< -o $@
vb@1409
    30
vb@1409
    31
%.dot: devicegroup.fsm gen_dot.ysl2
vb@1409
    32
	yml2proc -y gen_dot.ysl2 $<
vb@1409
    33
vb@1409
    34
%.svg: %.dot
vb@1409
    35
	dot -Tsvg -o $@ $<