msc: \ $(builddir)/hnbgw_context_map.png \ $(NULL) dot: \ $(builddir)/hnbgw_context_map_fsm.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 # remember current dir: in case the build process removes and recreates the dir, re-enter the new dir W := "$(PWD)" poll: while true; do $(MAKE) -C $W msc dot; sleep 1; done