sync/Makefile
author Krista Bennett <krista@pep-project.org>
Tue, 22 Aug 2017 15:57:25 +0200
changeset 1989 d3e5bc4a9854
parent 1988 ea7bceda4dc8
child 1993 efaeadf3e6f0
permissions -rw-r--r--
Keep me away from the default branch. Reverted to 1954:2f1ed8cf6b6f, because though damiano's Makefile changes are sexy, they'll break ppl.
     1 
     2 # This file is under GNU General Public License 3.0
     3 # see LICENSE.txt
     4 
     5 include ../Makefile.conf
     6 
     7 all: .codegen
     8 
     9 skeleton: .actions
    10 
    11 .codegen: .statemachines .actions
    12 	cp -f generated/*.* ../src
    13 	touch .codegen
    14 
    15 .actions: devicegroup.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2
    16 	$(YML2PROC) $(YML_OPTS) -y gen_actions.ysl2 $< -o $@
    17 
    18 .statemachines: devicegroup.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2
    19 	$(YML2PROC) $(YML_OPTS) -y gen_statemachine.ysl2 $< -o $@
    20 
    21 .PHONY: clean
    22 
    23 clean:
    24 	rm -f *.xml *.xsl \
    25     $(pathsub generated/%, ../src/% $(wildcard generated/*.*)) \
    26     ../generated/* ../skeletons/* .statemachines .actions *.dot *.svg
    27 
    28 %.xml: %.fsm
    29 	yml2c $< -o $@
    30 
    31 %.dot: devicegroup.fsm gen_dot.ysl2
    32 	$(YML2PROC) $(YML_OPTS) -y gen_dot.ysl2 $<
    33 
    34 %.svg: %.dot
    35 	dot -Tsvg -o $@ $<