sync/Makefile
author Damiano Boppart <damiano@pep-security.net>
Mon, 14 Aug 2017 02:26:09 +0200
branchENGINE-228
changeset 1958 433df9ee336d
parent 1955 8ec0b81a659f
child 1960 3e0027330faa
permissions -rw-r--r--
More Makefile cleanup
damiano@1958
     1
# Copyright 2017, pEp Security SA
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
vb@623
     6
include ../Makefile.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@1951
    27
	$(pathsub generated/%, ../src/% $(wildcard generated/*.*)) \
damiano@1951
    28
	../generated/* ../skeletons/* .statemachines .actions .codegen
vb@1409
    29
vb@1409
    30
%.xml: %.fsm
damiano@1955
    31
	$(YML2_PATH)/yml2c $< -o $@
vb@1409
    32
damiano@1951
    33
%.dot: gen_dot.ysl2 devicegroup.fsm
damiano@1955
    34
	$(YML2_PROC) $(YML2_OPTS) -y $^
vb@1409
    35
vb@1409
    36
%.svg: %.dot
vb@1409
    37
	dot -Tsvg -o $@ $<