From 0b52712b184e9a2f1d1adad3fe1f26196b6ba993 Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 18 Oct 2005 18:55:01 +0000 Subject: [PATCH] use Makefile.am for diffimg, build as noinst so it is available for rtest --- configure.ac | 1 + contrib/Makefile.am | 2 +- contrib/diffimg/Makefile.am | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 contrib/diffimg/Makefile.am diff --git a/configure.ac b/configure.ac index 883946d38..caf09e47b 100644 --- a/configure.ac +++ b/configure.ac @@ -1511,6 +1511,7 @@ AC_CONFIG_FILES(Makefile doc/info/Makefile contrib/Makefile contrib/prune/Makefile + contrib/diffimg/Makefile graphs/Makefile graphs/directed/Makefile graphs/undirected/Makefile diff --git a/contrib/Makefile.am b/contrib/Makefile.am index c399cebc3..a49293c28 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in -SUBDIRS = prune +SUBDIRS = prune diffimg EXTRA_DIST = INDEX dotmcl.pl gprof2dot.awk webdot.cgi Makefile.old \ lefty-grace dirgraph diffimg diff --git a/contrib/diffimg/Makefile.am b/contrib/diffimg/Makefile.am new file mode 100644 index 000000000..52b7aa2fd --- /dev/null +++ b/contrib/diffimg/Makefile.am @@ -0,0 +1,23 @@ +## Process this file with automake to produce Makefile.in + +VERSION=0.2 + +AM_CPPFLAGS = -DVERSION="$(VERSION)" @GD_INCLUDES@ + +noinst_PROGRAMS = diffimg + +diffimg_SOURCES = diffimg.c + +diffimg_LDADD = @GD_LIBS@ + +GRAPH = "digraph G { hello -> world }" + +test: diffimg + echo $(GRAPH) | dot -Tpng:cg >hello1.png + echo $(GRAPH) | dot -Tpng:cg >hello2.png + if `./diffimg hello1.png hello2.png >test1.png`;then echo same;else echo different;fi + echo $(GRAPH) | dot -Grankdir=LR -Tpng:cg >hello2.png + if `./diffimg hello1.png hello2.png >test2.png`;then echo same;else echo different;fi + +CLEANFILES = *.png + -- 2.40.0