sync/Makefile
author Krista Bennett <krista@pep-project.org>
Mon, 20 Nov 2017 16:04:50 +0100
branchENGINE-289
changeset 2287 026ab4dae779
parent 1993 efaeadf3e6f0
parent 2271 25bfd109320c
child 2302 3fbe4956dd34
permissions -rw-r--r--
merged in default
     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 ../default.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 	$(YML2_PROC) $(YML2_OPTS) -y gen_statemachine.ysl2 $< -o $@
    23 
    24 .PHONY: clean
    25 clean:
    26 	rm -f *.xml *.xsl *.dot *.svg \
    27 	$(patsubst generated/%,../src/%,$(wildcard generated/*.*)) \
    28 	../generated/* ../skeletons/* .statemachines .actions .codegen \
    29 	generated/Makefile.protocols
    30 
    31 %.xml: %.fsm
    32 	$(YML2_PATH)/yml2c $< -o $@
    33 
    34 %.dot: gen_dot.ysl2 devicegroup.fsm
    35 	$(YML2_PROC) $(YML2_OPTS) -y $^
    36 
    37 %.svg: %.dot
    38 	dot -Tsvg -o $@ $<