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.
krista@1989
     1
krista@1989
     2
# This file is under GNU General Public License 3.0
vb@1513
     3
# see LICENSE.txt
vb@1513
     4
vb@623
     5
include ../Makefile.conf
vb@618
     6
edouard@1467
     7
all: .codegen
vb@577
     8
edouard@1467
     9
skeleton: .actions
Edouard@610
    10
edouard@1467
    11
.codegen: .statemachines .actions
edouard@1467
    12
	cp -f generated/*.* ../src
krista@1989
    13
	touch .codegen
edouard@1467
    14
edouard@1467
    15
.actions: devicegroup.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2
krista@1989
    16
	$(YML2PROC) $(YML_OPTS) -y gen_actions.ysl2 $< -o $@
vb@623
    17
vb@809
    18
.statemachines: devicegroup.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2
krista@1989
    19
	$(YML2PROC) $(YML_OPTS) -y gen_statemachine.ysl2 $< -o $@
vb@577
    20
vb@577
    21
.PHONY: clean
krista@1989
    22
vb@577
    23
clean:
krista@1989
    24
	rm -f *.xml *.xsl \
krista@1989
    25
    $(pathsub generated/%, ../src/% $(wildcard generated/*.*)) \
krista@1989
    26
    ../generated/* ../skeletons/* .statemachines .actions *.dot *.svg
vb@1409
    27
vb@1409
    28
%.xml: %.fsm
krista@1989
    29
	yml2c $< -o $@
vb@1409
    30
krista@1989
    31
%.dot: devicegroup.fsm gen_dot.ysl2
krista@1989
    32
	$(YML2PROC) $(YML_OPTS) -y gen_dot.ysl2 $<
vb@1409
    33
vb@1409
    34
%.svg: %.dot
vb@1409
    35
	dot -Tsvg -o $@ $<