2019-09-23 15:02:49 +02:00
|
|
|
.PHONY := all clean
|
2019-02-04 08:59:39 +01:00
|
|
|
|
|
|
|
GRADLE_QUITE_ARGS := --quiet --console plain
|
|
|
|
|
2019-09-23 15:02:49 +02:00
|
|
|
XMPP_NIO_TCP_CONNECTION_STATE_GRAPH_PNG := src/javadoc/org/jivesoftware/smack/tcp/doc-files/XmppNioTcpConnectionStateGraph.png
|
|
|
|
XMPP_NIO_TCP_CONNECTION_STATE_GRAPH_DOT := $(XMPP_NIO_TCP_CONNECTION_STATE_GRAPH_PNG:.png=.dot)
|
|
|
|
|
|
|
|
GENERATED_FILES := $(XMPP_NIO_TCP_CONNECTION_STATE_GRAPH_PNG) $(XMPP_NIO_TCP_CONNECTION_STATE_GRAPH_DOT)
|
|
|
|
|
|
|
|
all: $(XMPP_NIO_TCP_CONNECTION_STATE_GRAPH_PNG)
|
2019-02-04 08:59:39 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(GENERATED_FILES)
|
|
|
|
|
2019-09-23 15:02:49 +02:00
|
|
|
%.png: %.dot
|
|
|
|
dot -Tpng -o $@ $^
|
|
|
|
|
|
|
|
$(XMPP_NIO_TCP_CONNECTION_STATE_GRAPH_DOT): src/main/java/org/jivesoftware/smack/tcp/XmppNioTcpConnection.java ../smack-core/src/main/java/org/jivesoftware/smack/fsm/AbstractXmppStateMachineConnection.java
|
|
|
|
# TODO: This also creates the dot file even if the command
|
|
|
|
# fails. It would be better if this was not the case.
|
|
|
|
gradle $(GRADLE_QUITE_ARGS) :smack-repl:printXmppNioTcpConnectionStateGraph > $@
|