blob: f71d9347643d375ee6748123d11e23312e915132 [file] [log] [blame]
Neels Hofmeyrc4628a32018-12-07 14:47:34 +01001all:
2 echo "built only on manual invocation, needs mscgen and dot (graphviz) programs: invoke 'make charts'"
3
4charts: msc dot
5
6EXTRA_DIST = \
Neels Hofmeyrc259be42023-03-08 02:39:06 +01007 $(srcdir)/*.msc \
Neels Hofmeyrc4628a32018-12-07 14:47:34 +01008 $(NULL)
9
10CLEANFILES = \
Neels Hofmeyrc259be42023-03-08 02:39:06 +010011 $(builddir)/*.png \
Neels Hofmeyrc4628a32018-12-07 14:47:34 +010012 $(NULL)
13
14msc: \
Neels Hofmeyr7ea0db82019-08-05 23:08:38 +020015 $(builddir)/mncc_call_fsm.png \
Neels Hofmeyrc4628a32018-12-07 14:47:34 +010016 $(builddir)/inter_bsc_ho.png \
17 $(builddir)/inter_msc_ho.png \
Neels Hofmeyre4febd22023-03-08 01:48:02 +010018 $(builddir)/voice_call_external_mncc.png \
Neels Hofmeyr0c076bc2021-07-27 23:30:48 +020019 $(builddir)/call_reestablishment.png \
Neels Hofmeyrc4628a32018-12-07 14:47:34 +010020 $(NULL)
21
22dot: \
23 $(NULL)
24
Neels Hofmeyr82f58fe2019-10-07 21:14:02 +020025$(builddir)/%.png: %.msc
Neels Hofmeyrc4628a32018-12-07 14:47:34 +010026 mscgen -T png -o $@ $<
27
28$(builddir)/%.png: $(srcdir)/%.dot
29 dot -Tpng $< > $@
30
31.PHONY: poll
32poll:
33 while true; do $(MAKE) msc dot; sleep 1; done