sync/Makefile
author Krista Bennett <krista@pep-project.org>
Thu, 18 Jan 2018 00:46:19 +0100
changeset 2410 721952accdee
parent 2302 3fbe4956dd34
child 2829 e444c3c960bb
permissions -rw-r--r--
DANGER! MERGED IN ENGINE-289! SOME DOC BUGS STILL EXIST - USE WITH CARE!!!
krista@2271
     1
# Copyright 2017, pEp Foundation
krista@2271
     2
# This file is part of pEpEngine
krista@2271
     3
# This file may be used under the terms of the GNU General Public License version 3
krista@2271
     4
# see LICENSE.txt
krista@2271
     5
krista@2271
     6
include ../default.conf
krista@2271
     7
krista@2271
     8
.PHONY: all
krista@2271
     9
all: .codegen
krista@2271
    10
krista@2271
    11
# Currently not in use, kept for historic reasons
krista@2271
    12
skeleton: .actions
krista@2271
    13
krista@2271
    14
.codegen: .statemachines .actions
krista@2271
    15
	cp -f generated/*.* ../src
krista@2271
    16
	touch $@
krista@2271
    17
krista@2271
    18
.actions: devicegroup.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2
krista@2271
    19
	$(YML2_PROC) $(YML2_OPTS) -y gen_actions.ysl2 $< -o $@
krista@2271
    20
krista@2271
    21
.statemachines: devicegroup.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2
krista@2271
    22
	$(YML2_PROC) $(YML2_OPTS) -y gen_statemachine.ysl2 $< -o $@
krista@2271
    23
krista@2271
    24
.PHONY: clean
krista@2271
    25
clean:
krista@2271
    26
	rm -f *.xml *.xsl *.dot *.svg \
krista@2271
    27
	$(patsubst generated/%,../src/%,$(wildcard generated/*.*)) \
krista@2271
    28
	../generated/* ../skeletons/* .statemachines .actions .codegen \
krista@2271
    29
	generated/Makefile.protocols
krista@2271
    30
krista@2271
    31
%.xml: %.fsm
krista@2271
    32
	$(YML2_PATH)/yml2c $< -o $@
krista@2271
    33
krista@2271
    34
%.dot: gen_dot.ysl2 devicegroup.fsm
krista@2271
    35
	$(YML2_PROC) $(YML2_OPTS) -y $^
krista@2271
    36
krista@2271
    37
%.svg: %.dot
krista@2271
    38
	dot -Tsvg -o $@ $<