sync/Makefile
author Krista Bennett <krista@pep-project.org>
Fri, 27 Oct 2017 20:02:41 +0200
branchENGINE-293
changeset 2219 99b05a2f117e
parent 2210 17c30881c885
child 2221 07ce59b5c058
child 2302 3fbe4956dd34
permissions -rw-r--r--
shelving changes
damiano@1960
     1
# Copyright 2017, pEp Foundation
damiano@1958
     2
# This file is part of pEpEngine
damiano@1958
     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
damiano@2210
     6
include ../default.conf
vb@618
     7
damiano@1951
     8
.PHONY: all
edouard@1467
     9
all: .codegen
vb@577
    10
damiano@1951
    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
damiano@1951
    16
	touch $@
edouard@1467
    17
edouard@1467
    18
.actions: devicegroup.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2
damiano@1955
    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
damiano@1955
    22
	$(YML2_PROC) $(YML2_OPTS) -y gen_statemachine.ysl2 $< -o $@
vb@577
    23
vb@577
    24
.PHONY: clean
vb@577
    25
clean:
damiano@1951
    26
	rm -f *.xml *.xsl *.dot *.svg \
damiano@1964
    27
	$(patsubst generated/%,../src/%,$(wildcard generated/*.*)) \
damiano@1975
    28
	../generated/* ../skeletons/* .statemachines .actions .codegen \
damiano@1975
    29
	generated/Makefile.protocols
vb@1409
    30
vb@1409
    31
%.xml: %.fsm
damiano@1955
    32
	$(YML2_PATH)/yml2c $< -o $@
vb@1409
    33
damiano@1951
    34
%.dot: gen_dot.ysl2 devicegroup.fsm
damiano@1955
    35
	$(YML2_PROC) $(YML2_OPTS) -y $^
vb@1409
    36
vb@1409
    37
%.svg: %.dot
vb@1409
    38
	dot -Tsvg -o $@ $<