sync/Makefile
author Dirk Zimmermann <dz@pep.security>
Tue, 09 Apr 2019 16:02:46 +0200
branchIOS-1482
changeset 3480 689c15d6bef7
parent 3455 280bc73e86ab
child 3581 c1bf759e2acf
permissions -rw-r--r--
IOS-1482 Xcode: Change organization name.
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
vb@3445
    32
	touch .copy
vb@2830
    33
krista@2271
    34
%.xml: %.fsm
vb@2829
    35
	yml2c $< -o $@
krista@2271
    36
vb@2829
    37
%.dot: sync.fsm gen_dot.ysl2
damiano@3257
    38
	$(YML2_PROC) -y gen_dot.ysl2 $<
krista@2271
    39
krista@2271
    40
%.svg: %.dot
krista@2271
    41
	dot -Tsvg -o $@ $<
damiano@3257
    42