sync/Makefile
author Krista Bennett <krista@pep-project.org>
Tue, 22 Aug 2017 15:34:17 +0200
changeset 1988 ea7bceda4dc8
parent 1706 50fb48684347
child 1989 d3e5bc4a9854
permissions -rw-r--r--
Rolled back to revision 1982. Sorry all, checked in wrong branch to default
krista@1988
     1
# Copyright 2017, pEp Foundation
krista@1988
     2
# This file is part of pEpEngine
krista@1988
     3
# This file may be used under the terms of the GNU General Public License version 3
vb@1513
     4
# see LICENSE.txt
vb@1513
     5
vb@623
     6
include ../Makefile.conf
vb@618
     7
krista@1988
     8
.PHONY: all
edouard@1467
     9
all: .codegen
vb@577
    10
krista@1988
    11
# Currently not in use, kept for historic reasons
edouard@1467
    12
skeleton: .actions
Edouard@610
    13
edouard@1467
    14
.codegen: .statemachines .actions
edouard@1467
    15
	cp -f generated/*.* ../src
krista@1988
    16
	touch $@
edouard@1467
    17
edouard@1467
    18
.actions: devicegroup.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2
krista@1988
    19
	$(YML2_PROC) $(YML2_OPTS) -y gen_actions.ysl2 $< -o $@
vb@623
    20
vb@809
    21
.statemachines: devicegroup.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2
krista@1988
    22
	$(YML2_PROC) $(YML2_OPTS) -y gen_statemachine.ysl2 $< -o $@
vb@577
    23
vb@577
    24
.PHONY: clean
vb@577
    25
clean:
krista@1988
    26
	rm -f *.xml *.xsl *.dot *.svg \
krista@1988
    27
	$(patsubst generated/%,../src/%,$(wildcard generated/*.*)) \
krista@1988
    28
	../generated/* ../skeletons/* .statemachines .actions .codegen \
krista@1988
    29
	generated/Makefile.protocols
vb@1409
    30
vb@1409
    31
%.xml: %.fsm
krista@1988
    32
	$(YML2_PATH)/yml2c $< -o $@
vb@1409
    33
krista@1988
    34
%.dot: gen_dot.ysl2 devicegroup.fsm
krista@1988
    35
	$(YML2_PROC) $(YML2_OPTS) -y $^
vb@1409
    36
vb@1409
    37
%.svg: %.dot
vb@1409
    38
	dot -Tsvg -o $@ $<