sync/Makefile
author Thomas
Thu, 27 Jun 2019 09:29:20 +0200
branchsequoia_windows
changeset 3878 37426cf0d1fe
parent 3581 c1bf759e2acf
permissions -rw-r--r--
Merge with ENGINE-581
     1 # This file is under GNU General Public License 3.0
     2 # see LICENSE.txt
     3 
     4 include ../Makefile.conf
     5 
     6 .PHONY: all clean
     7 
     8 all: .copy
     9 
    10 generated:
    11 	mkdir -p $@
    12 
    13 .actions: sync.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2 $(wildcard cond_act_*.yml2) | generated
    14 	$(YML2_PROC) -y gen_actions.ysl2 $< -o $@
    15 
    16 .statemachines: sync.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2 | generated
    17 	$(YML2_PROC) -y gen_statemachine.ysl2 $< -o $@
    18 
    19 .codecs: sync.fsm gen_codec.ysl2 fsm.yml2 functions.ysl2 | generated
    20 	$(YML2_PROC) -y gen_codec.ysl2 $< -o $@
    21 
    22 .messages: sync.fsm gen_messages.ysl2 gen_message_func.ysl2 fsm.yml2 functions.ysl2 | generated
    23 	$(YML2_PROC) -y gen_messages.ysl2 $< -o $@
    24 	$(YML2_PROC) -y gen_message_func.ysl2 $< -o $@
    25 
    26 clean:
    27 	rm -rf generated
    28 	rm -f *.xml *.xsl .statemachines .actions .codecs .messages .copy *.dot *.svg
    29 
    30 .copy: .actions .statemachines .codecs .messages
    31 	cp -f generated/*.c generated/*.h ../src
    32 	cp -f generated/*.asn1 ../asn.1
    33 	touch .copy
    34 
    35 %.xml: %.fsm
    36 	yml2c $< -o $@
    37 
    38 %.dot: sync.fsm gen_dot.ysl2
    39 	$(YML2_PROC) -y gen_dot.ysl2 $<
    40 
    41 %.svg: %.dot
    42 	dot -Tsvg -o $@ $<
    43