sync/Makefile
author Neal H. Walfield <neal@pep.foundation>
Wed, 08 May 2019 12:20:37 +0200
branchemail_comparison
changeset 3649 1dd837adc30b
parent 3581 c1bf759e2acf
child 4255 25a0aa0af8fa
permissions -rw-r--r--
Fix public key.
vb@2829
     1
# This file is under GNU General Public License 3.0
krista@2271
     2
# see LICENSE.txt
krista@2271
     3
damiano@3201
     4
include ../Makefile.conf
krista@2271
     5
vb@3455
     6
.PHONY: all clean
vb@3455
     7
vb@3445
     8
all: .copy
krista@2271
     9
damiano@3257
    10
generated:
damiano@3257
    11
	mkdir -p $@
krista@2271
    12
damiano@3257
    13
.actions: sync.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2 $(wildcard cond_act_*.yml2) | generated
vb@2829
    14
	$(YML2_PROC) -y gen_actions.ysl2 $< -o $@
krista@2271
    15
damiano@3257
    16
.statemachines: sync.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2 | generated
vb@2829
    17
	$(YML2_PROC) -y gen_statemachine.ysl2 $< -o $@
krista@2271
    18
damiano@3257
    19
.codecs: sync.fsm gen_codec.ysl2 fsm.yml2 functions.ysl2 | generated
vb@2840
    20
	$(YML2_PROC) -y gen_codec.ysl2 $< -o $@
vb@2840
    21
damiano@3257
    22
.messages: sync.fsm gen_messages.ysl2 gen_message_func.ysl2 fsm.yml2 functions.ysl2 | generated
vb@2840
    23
	$(YML2_PROC) -y gen_messages.ysl2 $< -o $@
vb@2829
    24
	$(YML2_PROC) -y gen_message_func.ysl2 $< -o $@
vb@2829
    25
damiano@3257
    26
clean:
damiano@3257
    27
	rm -rf generated
vb@3455
    28
	rm -f *.xml *.xsl .statemachines .actions .codecs .messages .copy *.dot *.svg
vb@2829
    29
vb@3445
    30
.copy: .actions .statemachines .codecs .messages
vb@2830
    31
	cp -f generated/*.c generated/*.h ../src
damiano@3581
    32
	cp -f generated/*.asn1 ../asn.1
vb@3445
    33
	touch .copy
vb@2830
    34
krista@2271
    35
%.xml: %.fsm
vb@2829
    36
	yml2c $< -o $@
krista@2271
    37
vb@2829
    38
%.dot: sync.fsm gen_dot.ysl2
damiano@3257
    39
	$(YML2_PROC) -y gen_dot.ysl2 $<
krista@2271
    40
krista@2271
    41
%.svg: %.dot
krista@2271
    42
	dot -Tsvg -o $@ $<
damiano@3257
    43