sync/Makefile
author Krista Bennett <krista@pep-project.org>
Fri, 06 Oct 2017 15:04:32 +0200
branchtest_diphoton
changeset 2139 d7cea953a27f
parent 1993 efaeadf3e6f0
child 2140 e4cb60e882ed
permissions -rw-r--r--
YML_PATH has to be exported to environment to build sync from the sync directory.
     1 # Copyright 2017, pEp Foundation
     2 # This file is part of pEpEngine
     3 # This file may be used under the terms of the GNU General Public License version 3
     4 # see LICENSE.txt
     5 
     6 include ../Makefile.conf
     7 
     8 .PHONY: all
     9 all: .codegen
    10 
    11 # Currently not in use, kept for historic reasons
    12 skeleton: .actions
    13 
    14 .codegen: .statemachines .actions
    15 	cp -f generated/*.* ../src
    16 	touch $@
    17 
    18 .actions: devicegroup.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2
    19 	$(YML2_PROC) $(YML2_OPTS) -y gen_actions.ysl2 $< -o $@
    20 
    21 .statemachines: devicegroup.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2
    22 	echo $(YML2_PATH) "1" $(YML_PATH) $(YML2_OPTS) $(YML2_PROC)
    23 	$(YML2_PROC) $(YML2_OPTS) -y gen_statemachine.ysl2 $< -o $@
    24 
    25 .PHONY: clean
    26 clean:
    27 	rm -f *.xml *.xsl *.dot *.svg \
    28 	$(patsubst generated/%,../src/%,$(wildcard generated/*.*)) \
    29 	../generated/* ../skeletons/* .statemachines .actions .codegen \
    30 	generated/Makefile.protocols
    31 
    32 %.xml: %.fsm
    33 	$(YML2_PATH)/yml2c $< -o $@
    34 
    35 %.dot: gen_dot.ysl2 devicegroup.fsm
    36 	$(YML2_PROC) $(YML2_OPTS) -y $^
    37 
    38 %.svg: %.dot
    39 	dot -Tsvg -o $@ $<