]> granicus.if.org Git - graphviz/commitdiff
use Makefile.am for diffimg, build as noinst so it is available for rtest
authorellson <devnull@localhost>
Tue, 18 Oct 2005 18:55:01 +0000 (18:55 +0000)
committerellson <devnull@localhost>
Tue, 18 Oct 2005 18:55:01 +0000 (18:55 +0000)
configure.ac
contrib/Makefile.am
contrib/diffimg/Makefile.am [new file with mode: 0644]

index 883946d38678c0722c6cdd96c60927794ef45ff0..caf09e47bdb52e21aadec2ccffde826380677e6f 100644 (file)
@@ -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
index c399cebc3abb5cb5ffa6a8343c8de86b58940c46..a49293c289949d62b61773a1824687344b3841b0 100644 (file)
@@ -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 (file)
index 0000000..52b7aa2
--- /dev/null
@@ -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
+