sync/Makefile
author Damiano Boppart <damiano@pep-security.net>
Wed, 16 Aug 2017 14:45:44 +0000
branchENGINE-228
changeset 1964 ec7c4b4cc8d0
parent 1960 3e0027330faa
child 1975 5cd88300221d
permissions -rw-r--r--
Fix setting of BUILD_CONFIG and fix call to 'pathsub', which doesn't exist
     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 	$(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 
    30 %.xml: %.fsm
    31 	$(YML2_PATH)/yml2c $< -o $@
    32 
    33 %.dot: gen_dot.ysl2 devicegroup.fsm
    34 	$(YML2_PROC) $(YML2_OPTS) -y $^
    35 
    36 %.svg: %.dot
    37 	dot -Tsvg -o $@ $<