sync/Makefile
author Damiano Boppart <damiano@pep-security.net>
Fri, 11 Aug 2017 15:12:28 +0200
branchENGINE-228
changeset 1951 9949e7d04b8c
parent 1706 50fb48684347
child 1955 8ec0b81a659f
permissions -rw-r--r--
Cleanup sync/Makefile
     1 # This file is under GNU General Public License 3.0
     2 # see LICENSE.txt
     3 
     4 include ../Makefile.conf
     5 
     6 .PHONY: all
     7 all: .codegen
     8 
     9 # Currently not in use, kept for historic reasons
    10 skeleton: .actions
    11 
    12 .codegen: .statemachines .actions
    13 	cp -f generated/*.* ../src
    14 	touch $@
    15 
    16 .actions: devicegroup.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2
    17 	$(YML2PROC) $(YML_OPTS) -y gen_actions.ysl2 $< -o $@
    18 
    19 .statemachines: devicegroup.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2
    20 	$(YML2PROC) $(YML_OPTS) -y gen_statemachine.ysl2 $< -o $@
    21 
    22 .PHONY: clean
    23 clean:
    24 	rm -f *.xml *.xsl *.dot *.svg \
    25 	$(pathsub generated/%, ../src/% $(wildcard generated/*.*)) \
    26 	../generated/* ../skeletons/* .statemachines .actions .codegen
    27 
    28 %.xml: %.fsm
    29 	$(YML_PATH)/yml2c $< -o $@
    30 
    31 %.dot: gen_dot.ysl2 devicegroup.fsm
    32 	$(YML2PROC) $(YML_OPTS) -y $^
    33 
    34 %.svg: %.dot
    35 	dot -Tsvg -o $@ $<