aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
blob: 7218a6b42661830ea32232d15af72c23e1fbfee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SUBDIRS = \
	examples \
	manuals \
	$(NULL)

msc: \
	$(builddir)/legend_for_ladder_diagrams.png \
	$(builddir)/handover.png \
	$(builddir)/assignment.png \
	$(builddir)/timeslot.png \
	$(builddir)/lchan.png \
	$(builddir)/ts-and-lchan-fsm-lifecycle.png \
	$(builddir)/handover-inter-bsc-out.png \
	$(builddir)/handover-inter-bsc-in.png \
	$(builddir)/mgw-endpoint.png \
	$(builddir)/location_services_ta.png \
	$(NULL)

dot: \
	$(builddir)/legend_for_fsm_diagrams.png \
	$(builddir)/assignment-fsm.png \
	$(builddir)/timeslot-fsm.png \
	$(builddir)/lchan-fsm.png \
	$(builddir)/lchan-rtp-fsm.png \
	$(builddir)/mgw-endpoint-fsm.png \
	$(builddir)/handover-intra-bsc-fsm.png \
	$(builddir)/handover-inter-bsc-out-fsm.png \
	$(builddir)/handover-inter-bsc-in-fsm.png \
	$(builddir)/location_services_fsm_bsc.png \
	$(NULL)

$(builddir)/%.png: $(srcdir)/%.msc
	mscgen -T png -o $@ $<

$(builddir)/%.png: $(srcdir)/%.dot
	dot -Tpng $< > $@

$(srcdir)/%.msc: $(srcdir)/%.ladder
	@which ladder_to_msc.py || (echo 'PLEASE POINT YOUR $$PATH AT libosmocore/contrib/ladder_to_msc.py' && false)
	ladder_to_msc.py -i $< -o $@

.PHONY: poll
poll:
	while true; do $(MAKE) msc dot; sleep 1; done