sync/gen_statemachine.ysl2
changeset 811 71418dbb493c
parent 807 a33a5f760372
child 939 ed7dfdae3031
     1.1 --- a/sync/gen_statemachine.ysl2	Sat Jul 09 11:43:51 2016 +0200
     1.2 +++ b/sync/gen_statemachine.ysl2	Sat Jul 09 14:27:11 2016 +0200
     1.3 @@ -9,7 +9,19 @@
     1.4  tstylesheet {
     1.5      include ./functions.ysl2
     1.6  
     1.7 -    template "/protocol/fsm" {
     1.8 +    template "/protocol" {
     1.9 +        document "../src/Makefile.protocols", "text"
    1.10 +            apply "fsm", 0, mode="make";
    1.11 +        apply "fsm", 0, mode=gen;
    1.12 +    }
    1.13 +
    1.14 +    template "fsm", mode=make
    1.15 +    ||
    1.16 +    «@filename»_fsm.c: ../sync/devicegroup.fsm
    1.17 +    \tmake -C ../«@filename»
    1.18 +    ||
    1.19 +
    1.20 +    template "fsm", mode=gen {
    1.21          document "../src/{@filename}_fsm.h", "text" {
    1.22          ||
    1.23          #pragma once