]> granicus.if.org Git - graphviz/commitdiff
create graphviz-version during make, not by obscure graphviz-build mechanism
authorellson <devnull@localhost>
Tue, 19 Apr 2011 17:10:13 +0000 (17:10 +0000)
committerellson <devnull@localhost>
Tue, 19 Apr 2011 17:10:13 +0000 (17:10 +0000)
Makefile.am
graphviz_version.h [deleted file]

index 0e66ab51db550f74109496c81c56e688962e3262..ae1137478bae50efed6abdced1a0e942d863a408 100644 (file)
@@ -28,6 +28,11 @@ dist-hook:
 #      rm -f ToPAS
 #      find $(distdir) -type f -exec md5sum {} >>ToPAS \;
 
+BUILT_SOURCES = graphviz_version.h
+
+graphviz_version.h: config.h
+       $(GREP) 'PACKAGE\|VERSION\|GVPLUGIN' config.h > graphviz_version.h
+
 EXTRA_DIST = $(txt) $(html) graphviz.spec.in graphviz.spec \
        autogen.sh config/depcomp config/config.rpath \
        builddate.h ast_common.h.in compat.h \
diff --git a/graphviz_version.h b/graphviz_version.h
deleted file mode 100644 (file)
index 40a2f1f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/* This is a stub - the real one is generated during packaging */