p≡p engine FORK
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
pEpEngine/sync/Makefile

37 lines
956 B

# Copyright 2017, pEp Foundation
# This file is part of pEpEngine
# This file may be used under the terms of the GNU General Public License version 3
# see LICENSE.txt
include ../Makefile.conf
.PHONY: all
all: .codegen
# Currently not in use, kept for historic reasons
skeleton: .actions
.codegen: .statemachines .actions
cp -f generated/*.* ../src
touch $@
.actions: devicegroup.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2
$(YML2_PROC) $(YML2_OPTS) -y gen_actions.ysl2 $< -o $@
.statemachines: devicegroup.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2
$(YML2_PROC) $(YML2_OPTS) -y gen_statemachine.ysl2 $< -o $@
.PHONY: clean
clean:
rm -f *.xml *.xsl *.dot *.svg \
$(pathsub generated/%, ../src/% $(wildcard generated/*.*)) \
../generated/* ../skeletons/* .statemachines .actions .codegen
%.xml: %.fsm
$(YML2_PATH)/yml2c $< -o $@
%.dot: gen_dot.ysl2 devicegroup.fsm
$(YML2_PROC) $(YML2_OPTS) -y $^
%.svg: %.dot
dot -Tsvg -o $@ $<