]> granicus.if.org Git - graphviz/commitdiff
Add required man page; fix makefile to process it
authorEmden R. Gansner <erg@alum.mit.edu>
Wed, 30 Jul 2014 17:24:55 +0000 (13:24 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Wed, 30 Jul 2014 17:24:55 +0000 (13:24 -0400)
lib/edgepaint/Makefile.am
lib/edgepaint/lab_gamut.3 [new file with mode: 0644]

index 111cb1f9490efd6dc1959c9fe38cae5cb23fb7ce..d0c0a3eee08c56ee9d4353a32897e1bcb54eb3b2 100644 (file)
@@ -1,6 +1,11 @@
 # $Id$Revision: 
 ## Process this file with automake to produce Makefile.in
 
+LAB_GAMUT_VERSION="1:0:0"
+
+pdfdir = $(pkgdatadir)/doc/pdf
+pkgconfigdir = $(libdir)/pkgconfig
+
 AM_CPPFLAGS = \
        -I$(top_srcdir) \
        -I$(top_srcdir)/lib/common \
@@ -15,9 +20,16 @@ noinst_HEADERS =  edge_distinct_coloring.h  furtherest_point.h  intersection.h
 
 noinst_LTLIBRARIES = libedgepaint_C.la
 lib_LTLIBRARIES = liblab_gamut.la
+man_MANS = lab_gamut.3
+pdf_DATA = lab_gamut.3.pdf
 
 libedgepaint_C_la_SOURCES = edge_distinct_coloring.c  furtherest_point.c  intersection.c  lab.c  node_distinct_coloring.c
+
+liblab_gamut_la_LDFLAGS = -version-info $(LAB_GAMUT_VERSION)
 liblab_gamut_la_SOURCES = lab_gamut.c
 
-EXTRA_DIST = edgepaintlib.vcproj
+lab_gamut.3.pdf: $(srcdir)/lab_gamut.3
+       - @GROFF@ -Tps -man $(srcdir)/lab_gamut.3 | @PS2PDF@ - - >lab_gamut.3.pdf
+
+EXTRA_DIST =  $(man_MANS) $(pdf_DATA) edgepaintlib.vcproj
  
diff --git a/lib/edgepaint/lab_gamut.3 b/lib/edgepaint/lab_gamut.3
new file mode 100644 (file)
index 0000000..417ff33
--- /dev/null
@@ -0,0 +1,33 @@
+.TH LIBLAB_GAMUT 3 "30 JULY 2014"
+.SH NAME
+\fBliblab_gamut\fR \- data library for default color labeling
+.SH SYNOPSIS
+.ta .75i 1.5i 2.25i 3i 3.75i 4.5i 5.25i 6i
+.PP
+.nf
+\f5
+#include <lab_gamut.h>
+
+typedef struct {
+  signed char l, a, b;/* l: 0 to 100, a,b: -128 tp 128 */
+} char_color_lab;
+
+extern const char_color_lab lab_gamut_data[];
+extern int lab_gamut_data_size;
+
+\fP
+.fi
+.SH DESCRIPTION
+This library contains a large table of color specifications 
+used by default to disambiguate nodes or edges by distinct colors.
+It is not meant to be accessed directly by the user.
+The number of colors is given by \f5lab_gamut_data_size\fP. 
+.SH SEE ALSO
+.BR edgepaint (1),
+.BR gvmap (1),
+.BR cluster (3)
+
+.SH AUTHORS
+Yifan Hu <yifanhu@yahoo.com>
+Emden Gansner <erg@graphviz.org>
+