- Correct shebang of gvmap.sh to use ksh
- Fix gvmap.sh -? option to exit with zero exit status
- Graphviz doesn't build on MacOS with the latest libc++ #1785
+- make fails if ps2pdf is not installed (using autotools) #1763
## [2.44.1] - 2020-06-29
pdfdir = $(pkgdatadir)/doc/pdf
linkedman = neato.1 twopi.1 fdp.1 circo.1
+if ENABLE_MAN_PDFS
linkedpdf = neato.1.pdf twopi.1.pdf fdp.1.pdf circo.1.pdf
+else
+linkedpdf =
+endif
linkedprogram = neato$(EXEEXT) twopi$(EXEEXT) fdp$(EXEEXT) circo$(EXEEXT) \
osage$(EXEEXT) patchwork$(EXEEXT)
if WITH_SFDP
linkedman += sfdp.1
+if ENABLE_MAN_PDFS
linkedpdf += sfdp.1.pdf
+endif
linkedprogram += sfdp$(EXEEXT)
endif
endif
man_MANS = dot.1 osage.1 patchwork.1
+if ENABLE_MAN_PDFS
pdf_DATA = dot.1.pdf osage.1.pdf patchwork.1.pdf
+endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdf = $(pdf_DATA)
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
dot_SOURCES = dot.c no_builtins.c
dot_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=1
(cd $(DESTDIR)$(bindir); for i in $(linkedprogram); do rm -f $$i; done;)
(cd $(DESTDIR)$(libdir); rm -f config;)
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
dot.1.pdf: dot.1.ps
@PS2PDF@ $<
patchwork.1.ps: $(srcdir)/patchwork.1
@GROFF@ -Tps -man $< >$@
endif
+endif
dot_static_SOURCES = dot.c dot_builtins.c
dot_static_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=0
EXTRA_DIST = dot.1 osage.1 patchwork.1 $(pdf) dot.vcxproj*
-DISTCLEANFILES = dot.1.pdf osage.1.pdf dot.1.ps osage.1.ps patchwork.1.pdf patchwork.1.ps
+DISTCLEANFILES = $(pdf) dot.1.ps osage.1.ps patchwork.1.ps
endif
man_MANS = dotty.1
+if ENABLE_MAN_PDFS
pdf_DATA = dotty.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
if WITH_WIN32
dotty_SOURCES = mswin32/dotty.c
chmod +x dotty
endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
dotty.1.pdf: dotty.1.ps
@PS2PDF@ $<
dotty.1.ps: $(srcdir)/dotty.1
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(lefty_DATA) $(man_MANS) $(pdf) \
dotty.bsh dotty.ksh dotty.sh \
notes mswin32 dotty.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) dotty dotty.1.ps
+DISTCLEANFILES = $(pdf) dotty dotty.1.ps
bin_PROGRAMS = edgepaint
man_MANS = edgepaint.1
+if ENABLE_MAN_PDFS
pdf_DATA = edgepaint.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
edgepaint_SOURCES = edgepaintmain.c
edgepaint_CPPFLAGS = $(AM_CPPFLAGS)
# linking, so the C++ standard library is included for our C++ dependencies
nodist_EXTRA_edgepaint_SOURCES = fake.cxx
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
edgepaint.1.pdf: edgepaint.1.ps
@PS2PDF@ $<
edgepaint.1.ps: $(srcdir)/edgepaint.1
@GROFF@ -e -Tps -man -t $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) edgepaint.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) edgepaint.1.ps
+DISTCLEANFILES = $(pdf) edgepaint.1.ps
gveditdir = $(pkgdatadir)/gvedit
mans = gvedit.1
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdfs = gvedit.1.pdf
else
pdfs = ERROR_NO_PS2PDF
endif
+else
+pdfs =
+endif
if WITH_QT
bin_PROGRAMS = gvedit
gvedit_DATA = attrs.txt
man_MANS = $(mans)
+if ENABLE_MAN_PDFS
pdf_DATA = gvedit.1.pdf
endif
+endif
AM_CPPFLAGS = \
-I$(top_srcdir)/lib \
attrs.txt: $(top_srcdir)/doc/infosrc/attrs
cp $(top_srcdir)/doc/infosrc/attrs attrs.txt
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gvedit.1.pdf: gvedit.1.ps
@PS2PDF@ $<
gvedit.1.ps: $(srcdir)/gvedit.1
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = gvedit.vcxproj* gvedit.pro.in mdi.qrc $(mans) $(pdfs)
CLEANFILES = moc_csettings.cpp moc_imageviewer.cpp moc_mainwindow.cpp moc_mdichild.cpp qrc_mdi.cpp
-DISTCLEANFILES = attrs.txt $(pdf_DATA) qMakefile gvedit.1.ps
+DISTCLEANFILES = attrs.txt $(pdf) qMakefile gvedit.1.ps
clean-local:
-$(MAKE) -f qMakefile clean
endif
man_MANS = gvmap.1 cluster.1 gvmap.sh.1
+if ENABLE_MAN_PDFS
pdf_DATA = gvmap.1.pdf cluster.1.pdf gvmap.sh.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
noinst_HEADERS = make_map.h power.h country_graph_coloring.h
gvmap.sh :
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gvmap.1.pdf: gvmap.1.ps
@PS2PDF@ $<
gvmap.sh.1.ps: $(srcdir)/gvmap.sh.1
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) gvmap.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) gvmap.1.ps cluster.1.ps gvmap.sh.1.ps
+DISTCLEANFILES = $(pdf) gvmap.1.ps cluster.1.ps gvmap.sh.1.ps
endif
man_MANS = gvpr.1
+if ENABLE_MAN_PDFS
pdf_DATA = gvpr.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
gvpr_SOURCES = gvprmain.c
gvpr_CPPFLAGS = $(AM_CPPFLAGS)
$(top_builddir)/lib/cgraph/libcgraph.la \
$(top_builddir)/lib/cdt/libcdt.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gvpr.1.pdf: gvpr.1.ps
@PS2PDF@ $<
gvpr.1.ps: $(srcdir)/gvpr.1
@GROFF@ -Tps -man -t $< >$@
endif
+endif
gvpr_static_SOURCES = gvprmain.c
gvpr_static_CPPFLAGS = $(AM_CPPFLAGS)
gvpr_static_LDADD = \
EXTRA_DIST = $(man_MANS) $(pdf) lib gvpr.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) gvpr.1.ps
+DISTCLEANFILES = $(pdf) gvpr.1.ps
endif
man_MANS = lefty.1
+if ENABLE_MAN_PDFS
pdf_DATA = lefty.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
lefty_DATA = lefty.psp
-lXt -lXmu -lXext -lX11 @SOCKET_LIBS@ @MATH_LIBS@
endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
lefty.1.pdf: lefty.1.ps
@PS2PDF@ $<
lefty.1.ps: $(srcdir)/lefty.1
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(lefty_DATA) $(man_MANS) $(pdf) lefty.vcxproj* colors.txt aix_mods cs2l/*
-DISTCLEANFILES = $(pdf_DATA) lefty.1.ps
+DISTCLEANFILES = $(pdf) lefty.1.ps
endif
man_MANS = lneato.1
+if ENABLE_MAN_PDFS
pdf_DATA = lneato.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
AM_CFLAGS = -DLNEATO
if WITH_WIN32
chmod +x lneato
endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
lneato.1.pdf: lneato.1.ps
@PS2PDF@ $<
lneato.1.ps: $(srcdir)/lneato.1
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) lneato.bsh lneato.ksh lneato.sh \
mswin32 lneato.vcxproj*
-DISTCLEANFILES = lneato $(pdf_DATA) lneato.1.ps
+DISTCLEANFILES = lneato $(pdf) lneato.1.ps
endif
man_MANS = mingle.1
+if ENABLE_MAN_PDFS
pdf_DATA = mingle.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
mingle_SOURCES = minglemain.c
mingle_CPPFLAGS = $(AM_CPPFLAGS)
# linking, so the C++ standard library is included for our C++ dependencies
nodist_EXTRA_mingle_SOURCES = fake.cxx
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
mingle.1.pdf: mingle.1.ps
@PS2PDF@ $<
mingle.1.ps: $(srcdir)/mingle.1
@GROFF@ -e -Tps -man -t $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) mingle.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) mingle.1.ps
+DISTCLEANFILES = $(pdf) mingle.1.ps
bin_PROGRAMS += smyrna_static
endif
man_MANS += smyrna.1
+if ENABLE_MAN_PDFS
pdf_DATA += smyrna.1.pdf
endif
+endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdf = smyrna.1.pdf
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
noinst_HEADERS = arcball.h draw.h glexpose.h \
glmotion.h gltemplate.h gui/appmouse.h gui/callbacks.h \
$(top_builddir)/lib/neatogen/libneatogen_C.la \
$(GTK_LIBS) $(GLUT_LIBS) $(GTKGLEXT_LIBS) $(GLADE_LIBS) $(X_LIBS) $(EXPAT_LIBS) $(GTS_LIBS) $(MATH_LIBS)
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
smyrna.1.pdf: smyrna.1.ps
@PS2PDF@ $<
smyrna.1.ps: $(srcdir)/smyrna.1
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = smyrna.vcxproj* $(man_MANS) $(pdf) smyrna.1
-DISTCLEANFILES = $(pdf_DATA) smyrna.1.ps
+DISTCLEANFILES = $(pdf) smyrna.1.ps
man_MANS = gc.1 gvcolor.1 gxl2gv.1 acyclic.1 nop.1 ccomps.1 sccmap.1 \
tred.1 unflatten.1 gvpack.1 dijkstra.1 bcomps.1 mm2gv.1 gvgen.1 gml2gv.1 graphml2gv.1
+if ENABLE_MAN_PDFS
pdf_DATA = gc.1.pdf gvcolor.1.pdf gxl2gv.1.pdf acyclic.1.pdf \
nop.1.pdf ccomps.1.pdf sccmap.1.pdf tred.1.pdf \
unflatten.1.pdf gvpack.1.pdf dijkstra.1.pdf \
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
install-data-hook:
(cd $(DESTDIR)$(man1dir); rm -f gv2gxl.1; $(LN_S) gxl2gv.1 gv2gxl.1;)
+if ENABLE_MAN_PDFS
(cd $(DESTDIR)$(pdfdir); rm -f gv2gxl.1.pdf; $(LN_S) gxl2gv.1.pdf gv2gxl.1.pdf;)
+endif
(cd $(DESTDIR)$(man1dir); rm -f gxl2dot.1; $(LN_S) gxl2gv.1 gxl2dot.1;)
+if ENABLE_MAN_PDFS
(cd $(DESTDIR)$(pdfdir); rm -f gxl2dot.1.pdf; $(LN_S) gxl2gv.1.pdf gxl2dot.1.pdf;)
+endif
(cd $(DESTDIR)$(man1dir); rm -f dot2gxl.1; $(LN_S) gv2gxl.1 dot2gxl.1;)
+if ENABLE_MAN_PDFS
(cd $(DESTDIR)$(pdfdir); rm -f dot2gxl.1.pdf; $(LN_S) gv2gxl.1.pdf dot2gxl.1.pdf;)
+endif
(cd $(DESTDIR)$(man1dir); rm -f gv2gml.1; $(LN_S) gml2gv.1 gv2gml.1;)
+if ENABLE_MAN_PDFS
(cd $(DESTDIR)$(pdfdir); rm -f gv2gml.1.pdf; $(LN_S) gml2gv.1.pdf gv2gml.1.pdf;)
+endif
install-exec-hook:
(cd $(DESTDIR)$(bindir); rm -f gv2gxl$(EXEEXT); $(LN_S) gxl2gv$(EXEEXT) gv2gxl$(EXEEXT);)
uninstall-hook:
(cd $(DESTDIR)$(man1dir); rm -f gv2gxl.1;)
+if ENABLE_MAN_PDFS
(cd $(DESTDIR)$(pdfdir); rm -f gv2gxl.1.pdf;)
+endif
(cd $(DESTDIR)$(bindir); rm -f gv2gxl$(EXEEXT);)
(cd $(DESTDIR)$(bindir); rm -f dot2gxl$(EXEEXT);)
(cd $(DESTDIR)$(bindir); rm -f gxl2dot$(EXEEXT);)
$(top_builddir)/lib/cgraph/libcgraph.la \
$(top_builddir)/lib/cdt/libcdt.la @EXPAT_LIBS@
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gxl2gv.1.pdf: gxl2gv.1.ps
@PS2PDF@ $<
gxl2gv.1.ps: $(srcdir)/gxl2gv.1
@GROFF@ -Tps -man $< >$@
endif
+endif
sccmap_SOURCES = sccmap.c
$(top_builddir)/lib/ingraphs/libingraphs_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la @EXPAT_LIBS@
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
sccmap.1.pdf: sccmap.1.ps
@PS2PDF@ $<
sccmap.1.ps: $(srcdir)/sccmap.1
@GROFF@ -Tps -man $< >$@
endif
+endif
ccomps_SOURCES = ccomps.c
$(top_builddir)/lib/ingraphs/libingraphs_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
ccomps.1.pdf: ccomps.1.ps
@PS2PDF@ $<
ccomps.1.ps: $(srcdir)/ccomps.1
@GROFF@ -Tps -man $< >$@
endif
+endif
#tred2_SOURCES = tred2.c
#
$(top_builddir)/lib/ingraphs/libingraphs_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
tred.1.pdf: tred.1.ps
@PS2PDF@ $<
tred.1.ps: $(srcdir)/tred.1
@GROFF@ -Tps -man $< >$@
endif
+endif
unflatten_SOURCES = unflatten.c
$(top_builddir)/lib/ingraphs/libingraphs_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
unflatten.1.pdf: unflatten.1.ps
@PS2PDF@ $<
unflatten.1.ps: $(srcdir)/unflatten.1
@GROFF@ -Tps -man $< >$@
endif
+endif
acyclic_SOURCES = acyclic.c
$(top_builddir)/lib/ingraphs/libingraphs_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
acyclic.1.pdf: acyclic.1.ps
@PS2PDF@ $<
acyclic.1.ps: $(srcdir)/acyclic.1
@GROFF@ -Tps -man $< >$@
endif
+endif
nop_SOURCES = nop.c
$(top_builddir)/lib/ingraphs/libingraphs_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
nop.1.pdf: nop.1.ps
@PS2PDF@ $<
nop.1.ps: $(srcdir)/nop.1
@GROFF@ -Tps -man $< >$@
endif
+endif
gvcolor_SOURCES = gvcolor.c colxlate.c colortbl.h
$(top_builddir)/lib/ingraphs/libingraphs_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gvcolor.1.pdf: gvcolor.1.ps
@PS2PDF@ $<
gvcolor.1.ps: $(srcdir)/gvcolor.1
@GROFF@ -Tps -man $< >$@
endif
+endif
bcomps_SOURCES = bcomps.c
$(top_builddir)/lib/ingraphs/libingraphs_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
bcomps.1.pdf: bcomps.1.ps
@PS2PDF@ $<
bcomps.1.ps: $(srcdir)/bcomps.1
@GROFF@ -Tps -man $< >$@
endif
+endif
gc_SOURCES = gc.c
$(top_builddir)/lib/ingraphs/libingraphs_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gc.1.pdf: gc.1.ps
@PS2PDF@ $<
gc.1.ps: $(srcdir)/gc.1
@GROFF@ -Tps -man $< >$@
endif
+endif
gvpack_SOURCES = gvpack.c
gvpack_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=0
$(EXPAT_LIBS) $(Z_LIBS) $(GTS_LIBS) $(SOCKET_LIBS) $(IPSEPCOLA_LIBS) $(MATH_LIBS)
endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gvpack.1.pdf: gvpack.1.ps
@PS2PDF@ $<
gvpack.1.ps: $(srcdir)/gvpack.1
@GROFF@ -Tps -man $< >$@
endif
+endif
mm2gv_SOURCES = mm2gv.c matrix_market.c mmio.c
$(top_builddir)/lib/pathplan/libpathplan_C.la \
$(top_builddir)/lib/cgraph/libcgraph.la @MATH_LIBS@
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
mm2gv.1.pdf: mm2gv.1.ps
@PS2PDF@ $<
mm2gv.1.ps: mm2gv.1
@GROFF@ -Tps -man -e -t $< >$@
endif
+endif
gv2gml_SOURCES = gv2gml.c
$(top_builddir)/lib/cgraph/libcgraph.la \
$(top_builddir)/lib/cdt/libcdt.la @MATH_LIBS@
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gml2gv.1.pdf: gml2gv.1.ps
@PS2PDF@ $<
gml2gv.1.ps: gml2gv.1
@GROFF@ -Tps -man $< >$@
endif
+endif
graphml2gv_SOURCES = graphml2gv.c
$(top_builddir)/lib/cgraph/libcgraph.la \
$(top_builddir)/lib/cdt/libcdt.la @EXPAT_LIBS@
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
graphml2gv.1.pdf: graphml2gv.1.ps
@PS2PDF@ $<
graphml2gv.1.ps: $(srcdir)/graphml2gv.1
@GROFF@ -Tps -man $< >$@
endif
+endif
dijkstra_SOURCES = dijkstra.c
$(top_builddir)/lib/cgraph/libcgraph.la \
$(top_builddir)/lib/cdt/libcdt.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
dijkstra.1.pdf: dijkstra.1.ps
@PS2PDF@ $<
dijkstra.1.ps: $(srcdir)/dijkstra.1
@GROFF@ -Tps -man $< >$@
endif
+endif
gvgen_SOURCES = gvgen.c graph_generator.c
gvgen_LDADD = \
$(top_builddir)/lib/cgraph/libcgraph.la @MATH_LIBS@
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gvgen.1.pdf: gvgen.1.ps
@PS2PDF@ $<
gvgen.1.ps: $(srcdir)/gvgen.1
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) bcomps.vcxproj* \
acyclic.vcxproj* bcomps.vcxproj* ccomps.vcxproj* dijkstra.vcxproj* gc.vcxproj* \
CLEANFILES = stamp.h
-DISTCLEANFILES = $(pdf_DATA) gmlparse.[ch] gmlscan.c \
+DISTCLEANFILES = $(pdf) gmlparse.[ch] gmlscan.c \
gxl2gv.1.ps sccmap.1.ps ccomps.1.ps tred.1.ps unflatten.1.ps acyclic.1.ps \
nop.1.ps gvcolor.1.ps bcomps.1.ps gc.1.ps gvpack.1.ps mm2gv.1.ps gml2gv.1.ps \
graphml2gv.1.ps dijkstra.1.ps gvgen.1.ps
AC_CHECK_PROGS(PS2PDF,ps2pdf pstopdf,false)
AM_CONDITIONAL(HAVE_PS2PDF,[test "x$PS2PDF" != xfalse])
+AC_ARG_ENABLE([man-pdfs],
+ AS_HELP_STRING([--enable-man-pdfs],[Generate PDFs of man pages (default: auto)]),
+ [enable_man_pdfs=$enableval],
+ [enable_man_pdfs=$HAVE_PS2PDF])
+AM_CONDITIONAL(ENABLE_MAN_PDFS,[test "x$enable_man_pdfs" = "xyes"])
+
PKG_PROG_PKG_CONFIG
AC_ARG_WITH(tclsh,
pdfdir = $(pkgdatadir)/doc/pdf
man_MANS = diffimg.1
+if ENABLE_MAN_PDFS
pdf_DATA = diffimg.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
if WITH_LIBGD
bin_PROGRAMS = diffimg
diffimg_LDADD = @GDLIB_LIBS@ @MATH_LIBS@
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
diffimg.1.pdf: diffimg.1.ps
@PS2PDF@ $<
diffimg.1.ps: $(srcdir)/diffimg.1
@GROFF@ -Tps -man $< >$@
endif
+endif
GRAPH = "digraph G { hello -> world }"
CLEANFILES = *.png
EXTRA_DIST = diffimg.vcxproj* diffimg.1 $(pdf)
-DISTCLEANFILES = diffimg.1.pdf diffimg.1.ps
+DISTCLEANFILES = $(pdf) diffimg.1.ps
bin_PROGRAMS = prune
noinst_HEADERS = generic_list.h
man_MANS = prune.1
+if ENABLE_MAN_PDFS
pdf_DATA = prune.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
prune_SOURCES = generic_list.c prune.c
$(top_builddir)/lib/cgraph/libcgraph.la \
$(top_builddir)/lib/cdt/libcdt.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
prune.1.pdf: prune.1.ps
@PS2PDF@ $<
prune.1.ps: prune.1
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) README test.gv prune.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) prune.1.ps
+DISTCLEANFILES = $(pdf) prune.1.ps
noinst_LTLIBRARIES = libcdt_C.la
lib_LTLIBRARIES = libcdt.la
man_MANS = cdt.3
+if ENABLE_MAN_PDFS
pdf_DATA = cdt.3.pdf
+endif
pkgconfig_DATA = libcdt.pc
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdf = $(pdf_DATA)
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
libcdt_C_la_SOURCES = dtclose.c dtdisc.c dtextract.c dtflatten.c \
dthash.c dtlist.c dtmethod.c dtopen.c dtrenew.c dtrestore.c dtsize.c \
libcdt_la_LDFLAGS = -version-info $(CDT_VERSION) -no-undefined
libcdt_la_SOURCES = $(libcdt_C_la_SOURCES)
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
cdt.3.pdf: cdt.3.ps
@PS2PDF@ $<
cdt.3.ps: $(srcdir)/cdt.3
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) cdt.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) cdt.3.ps
+DISTCLEANFILES = $(pdf) cdt.3.ps
lib_LTLIBRARIES = libcgraph.la
pkgconfig_DATA = libcgraph.pc
man_MANS = cgraph.3
+if ENABLE_MAN_PDFS
pdf_DATA = cgraph.3.pdf
+endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdf = $(pdf_DATA)
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
libcgraph_C_la_SOURCES = agerror.c agxbuf.c apply.c attr.c edge.c \
flatten.c graph.c grammar.y id.c imap.c io.c mem.c node.c \
grammar.c grammar.h: $(top_srcdir)/lib/cgraph/grammar.y
@YACC@ -Wno-yacc -dv --output=grammar.c $(top_srcdir)/lib/cgraph/grammar.y
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
cgraph.3.pdf: cgraph.3.ps
@PS2PDF@ $<
cgraph.3.ps: $(srcdir)/cgraph.3
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) cmpnd.c \
grammar.c grammar.h scan.c \
cgraph.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) grammar.[ch] scan.c cgraph.3.ps
+DISTCLEANFILES = $(pdf) grammar.[ch] scan.c cgraph.3.ps
### expr.h includes ast.h and vmalloc.h which we don't install
#lib_LTLIBRARIES = libexpr.la
man_MANS = expr.3
+if ENABLE_MAN_PDFS
pdf_DATA = expr.3.pdf
-#pkgconfig_DATA = libexpr.pc
if HAVE_PS2PDF
pdf = $(pdf_DATA)
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
#### -no-undefined breaks Mac OS/X builds.
#### libast has "extern char **environ" which remains
y.output: $(top_srcdir)/lib/expr/exparse.y
@YACC@ -Wno-yacc -dtv $(top_srcdir)/lib/expr/exparse.y -o y.tab.c
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
expr.3.pdf: expr.3.ps
@PS2PDF@ $<
expr.3.ps: $(srcdir)/expr.3
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) \
Makefile.nmake Makefile.orig \
exparse.c exparse.h \
y.tab.c y.tab.h y.output expr.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) exparse.[ch] y.tab.[ch] y.output expr.3.ps
+DISTCLEANFILES = $(pdf) exparse.[ch] y.tab.[ch] y.output expr.3.ps
lib_LTLIBRARIES = libgvc.la
pkgconfig_DATA = libgvc.pc
man_MANS = gvc.3
+if ENABLE_MAN_PDFS
pdf_DATA = gvc.3.pdf
+endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdf = $(pdf_DATA)
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
libgvc_C_la_SOURCES = gvrender.c gvlayout.c gvdevice.c gvloadimage.c \
gvcontext.c gvjobs.c gvevent.c gvplugin.c gvconfig.c \
libgvc_la_LDFLAGS += -export-symbols $(top_srcdir)/lib/gvc.def
endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gvc.3.pdf: gvc.3.ps
@PS2PDF@ $<
gvc.3.ps: $(srcdir)/gvc.3
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) gvc.def
-DISTCLEANFILES = $(pdf_DATA) gvc.3.ps
+DISTCLEANFILES = $(pdf) gvc.3.ps
lib_LTLIBRARIES = libgvpr.la
pkgconfig_DATA = libgvpr.pc
man_MANS = gvpr.3
+if ENABLE_MAN_PDFS
pdf_DATA = gvpr.3.pdf
+endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdf = $(pdf_DATA)
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
libgvpr_C_la_SOURCES = actions.c compile.c gvpr.c gprstate.c parse.c queue.c
$(libgvpr_C_la_OBJECTS): gdefs.h
$(top_builddir)/lib/common/libcommon_C.la \
$(top_builddir)/lib/ingraphs/libingraphs_C.la
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gvpr.3.pdf: gvpr.3.ps
@PS2PDF@ $<
gvpr.3.ps: $(srcdir)/gvpr.3
@GROFF@ -Tps -man $< >$@
endif
+endif
libgvpr_la_LDFLAGS = -version-info $(GVPR_VERSION) -no-undefined
libgvpr_la_SOURCES = $(libgvpr_C_la_SOURCES)
EXTRA_DIST = $(man_MANS) $(pdf) gprdata mkdefs.c gdefs.h trie.c gvprlib.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) gdefs.h mkdefs$(EXEEXT) gvpr.3.ps
+DISTCLEANFILES = $(pdf) gdefs.h mkdefs$(EXEEXT) gvpr.3.ps
noinst_LTLIBRARIES = libinkpot_C.la
man_MANS = inkpot.3 inkpot.1
+if ENABLE_MAN_PDFS
pdf_DATA = inkpot.3.pdf inkpot.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
inkpot_SOURCES = inkpot.c
inkpot_LDADD = $(top_builddir)/lib/inkpot/libinkpot.la
$(top_builddir)/lib/inkpot/inkpot_lib_brewer.dat: inkpot_lib_brewer.tcl data/brewer_colors
$(TCLSH) inkpot_lib_brewer.tcl data/brewer_colors
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
inkpot.1.pdf: inkpot.1.ps
@PS2PDF@ $<
inkpot.3.ps: inkpot.3
@GROFF@ -Tps -man $< >$@
endif
+endif
CLEANFILES = inkpot_lib_*.dat
EXTRA_DIST = $(man_MANS) $(pdf) *.tcl data/* \
inkpot_lib_define.h inkpot_lib_value.h inkpot_lib_scheme.h inkpot_lib_string.h
-DISTCLEANFILES = $(pdf_DATA) \
+DISTCLEANFILES = $(pdf) \
inkpot_lib_define.h inkpot_lib_value.h inkpot_lib_scheme.h inkpot_lib_string.h \
inkpot.1.ps inkpot.3.ps
pkginclude_HEADERS = pack.h
noinst_LTLIBRARIES = libpack_C.la
man_MANS = pack.3
+if ENABLE_MAN_PDFS
pdf_DATA = pack.3.pdf
-#pkgconfig_DATA = libpack.pc
if HAVE_PS2PDF
pdf = $(pdf_DATA)
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
libpack_C_la_SOURCES = ccomps.c pack.c
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pack.3.pdf: pack.3.ps
@PS2PDF@ $<
pack.3.ps: $(srcdir)/pack.3
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) ptest.c
-DISTCLEANFILES = $(pdf_DATA) pack.3.ps
+DISTCLEANFILES = $(pdf) pack.3.ps
lib_LTLIBRARIES = libpathplan.la
pkgconfig_DATA = libpathplan.pc
man_MANS = pathplan.3
+if ENABLE_MAN_PDFS
pdf_DATA = pathplan.3.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
libpathplan_C_la_SOURCES = cvt.c inpoly.c route.c shortest.c \
shortestpth.c solvers.c triang.c util.c visibility.c
libpathplan_la_SOURCES = $(libpathplan_C_la_SOURCES)
libpathplan_la_LIBADD = @MATH_LIBS@
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pathplan.3.pdf: pathplan.3.ps
@PS2PDF@ $<
pathplan.3.ps: $(srcdir)/pathplan.3
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) path.lefty Pathplan.vcxproj* pathplan.def
-DISTCLEANFILES = $(pdf_DATA) pathplan.3.ps
+DISTCLEANFILES = $(pdf) pathplan.3.ps
pkgconfig_DATA = libxdot.pc
man_MANS = xdot.3
+if ENABLE_MAN_PDFS
pdf_DATA = xdot.3.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
libxdot_C_la_SOURCES = xdot.c
libxdot_la_LDFLAGS = -version-info $(XDOT_VERSION) -no-undefined
libxdot_la_SOURCES = $(libxdot_C_la_SOURCES)
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
xdot.3.pdf: xdot.3.ps
@PS2PDF@ $<
xdot.3.ps: $(srcdir)/xdot.3
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man_MANS) $(pdf) xdot.vcxproj*
-DISTCLEANFILES = $(pdf_DATA) xdot.3.ps
+DISTCLEANFILES = $(pdf) xdot.3.ps
endif
man_MANS = vimdot.1
+if ENABLE_MAN_PDFS
pdf_DATA = vimdot.1.pdf
if HAVE_PS2PDF
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
vimdot.1.pdf: vimdot.1.ps
@PS2PDF@ $<
vimdot.1.ps: $(srcdir)/vimdot.1
@GROFF@ -Tps -man $< >$@
endif
+endif
libgvplugin_xlib_C_la_SOURCES = \
gvplugin_xlib.c \
EXTRA_DIST = vimdot.sh vimdot.1 $(pdf)
-DISTCLEANFILES = vimdot vimdot.1.pdf vimdot.1.ps
+DISTCLEANFILES = vimdot $(pdf) vimdot.1.ps
AM_CFLAGS = @TCL_CFLAGS@
man = gdtclft.3tcl
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdf = gdtclft.3tcl.pdf
else
pdf = ERROR_NOPS2PDF
endif
+else
+pdf =
+endif
if WITH_LIBGD
if WITH_TCL
pkgtcl_LTLIBRARIES = libgdtclft.la
man_MANS = $(man)
+if ENABLE_MAN_PDFS
pdf_DATA = gdtclft.3tcl.pdf
+endif
noinst_LTLIBRARIES = libgdtclft_C.la
endif
endif
endif
endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gdtclft.3tcl.pdf: gdtclft.3tcl.ps
@PS2PDF@ $<
gdtclft.3tcl.ps: $(srcdir)/gdtclft.3tcl
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man) $(pdf)
if WITH_SHARP
pkgsharp_DATA = $(SHARP_data)
man_MANS += gv.3sharp
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3sharp.pdf
+endif
pkgsharp_LTLIBRARIES = libgv_sharp.la
DEVTSTS += test_sharp
endif
if WITH_D
pkgd_DATA = $(D_data)
#man_MANS += gv.3d
-#pdf_DATA += gv.3d.pdf
pkgd_LTLIBRARIES = libgv_d.la
#DEVTSTS += test_d
endif
if WITH_GO
pkggo_DATA = $(GO_data)
man_MANS += gv.3go
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3go.pdf
+endif
pkggo_LTLIBRARIES = libgv_go.la
DEVTSTS += test_go
endif
if WITH_GUILE
pkgguile_DATA = $(GUILE_data)
man_MANS += gv.3guile
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3guile.pdf
+endif
pkgguile_LTLIBRARIES = libgv_guile.la
DEVTSTS += test_guile
endif
if WITH_IO
pkgio_DATA = $(IO_data)
man_MANS += gv.3io
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3io.pdf
+endif
pkgio_LTLIBRARIES = libgv_io.la
DEVTSTS += test_io
endif
if WITH_JAVA
pkgjava_DATA = $(JAVA_data)
man_MANS += gv.3java
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3java.pdf
+endif
pkgjava_LTLIBRARIES = libgv_java.la
DEVTSTS += test_java
endif
if WITH_JAVASCRIPT
pkgd_DATA = $(JAVASCRIPT_data)
#man_MANS += gv.3javascript
-#pdf_DATA += gv.3javascript.pdf
pkgjavascript_LTLIBRARIES = libgv_javascript.la
#DEVTSTS += test_javascript
endif
if WITH_LUA
pkglua_DATA = $(LUA_data)
man_MANS += gv.3lua
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3lua.pdf
+endif
pkglua_LTLIBRARIES = libgv_lua.la
DEVTSTS += test_lua
endif
if WITH_OCAML
pkgocaml_DATA = $(OCAML_data)
man_MANS += gv.3ocaml
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3ocaml.pdf
+endif
pkgocaml_LTLIBRARIES = libgv_ocaml.la
DEVTSTS += test_ocaml
endif
if WITH_PERL
pkgperl_DATA = $(PERL_data)
man_MANS += gv.3perl
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3perl.pdf
+endif
pkgperl_LTLIBRARIES = libgv_perl.la
DEVTSTS += test_perl
endif
if WITH_PHP
pkgphp_DATA = $(PHP_data)
man_MANS += gv.3php
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3php.pdf
+endif
pkgphp_LTLIBRARIES = libgv_php.la
DEVTSTS += test_php
endif
DEVTSTS += test_python3
endif
man_MANS += gv.3python
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3python.pdf
+endif
if WITH_R
pkgR_DATA = $(R_data)
man_MANS += gv.3r
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3r.pdf
+endif
pkgR_LTLIBRARIES = libgv_R.la
DEVTSTS += test_R
endif
if WITH_RUBY
pkgruby_DATA = $(RUBY_data)
man_MANS += gv.3ruby
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3ruby.pdf
+endif
pkgruby_LTLIBRARIES = libgv_ruby.la
DEVTSTS += test_ruby
endif
if WITH_TCL
pkgtcl_DATA = $(TCL_data)
man_MANS += gv.3tcl
+if ENABLE_MAN_PDFS
pdf_DATA += gv.3tcl.pdf
+endif
pkgtcl_LTLIBRARIES = libgv_tcl.la
DEVTSTS += test_tcl
man = gv.3sharp gv.3go gv.3guile gv.3io gv.3java gv.3lua gv.3ocaml \
gv.3perl gv.3php gv.3python gv.3r gv.3ruby gv.3tcl
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdf = gv.3sharp.pdf gv.3go.pdf gv.3guile.pdf gv.3io.pdf gv.3java.pdf gv.3lua.pdf \
gv.3ocaml.pdf gv.3perl.pdf gv.3php.pdf gv.3python.pdf gv.3r.pdf gv.3ruby.pdf gv.3tcl.pdf
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
$(man): gv.i gv_doc_writer.tcl gv_doc_template.tcl gv_doc_langs.tcl
$(TCLSH) $(srcdir)/gv_doc_writer.tcl "$(srcdir)"
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
gv.3sharp.pdf: gv.3sharp.ps
@PS2PDF@ $<
gv.3tcl.ps: gv.3tcl
@GROFF@ -Tps -man $< >$@
endif
+endif
install-data-hook:
if WITH_JAVA
(cd $(DESTDIR)$(pkgjavadir); $(LN_S) -f org/graphviz/libgv_java.$(JSHEXT) ../../libgv.$(JSHEXT); javac -classpath $(DESTDIR)$(libjavadir) gv.java;)
AM_CFLAGS = $(TCL_CFLAGS)
man = tcldot.3tcl
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdf = tcldot.3tcl.pdf
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
html = tcldot.html
if WITH_TCL
pkgtcl_LTLIBRARIES = libtcldot.la libtcldot_builtin.la
man_MANS = $(man)
+if ENABLE_MAN_PDFS
pdf_DATA = tcldot.3tcl.pdf
+endif
html_DATA = $(html)
endif
sh $(top_srcdir)/tclpkg/mkpkgindex.sh libtcldot.la Tcldot $(VERSION)
endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
tcldot.3tcl.pdf: tcldot.3tcl.ps
@PS2PDF@ $<
tcldot.3tcl.ps: $(srcdir)/tcldot.3tcl
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man) $(pdf) $(html) README README.Tkspline
pdfdir = $(pkgdatadir)/doc/pdf
man = tkspline.3tk
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
pdf = tkspline.3tk.pdf
else
pdf = ERROR_NO_PS2PDF
endif
+else
+pdf =
+endif
# If all else fails there is a local copy of tkInt.h in tkstubs/
AM_CPPFLAGS = \
if WITH_TK
pkgtcl_LTLIBRARIES = libtkspline.la
man_MANS = $(man)
+if ENABLE_MAN_PDFS
pdf_DATA = tkspline.3tk.pdf
endif
+endif
libtkspline_la_LDFLAGS = -no-undefined
libtkspline_la_SOURCES = tkspline.c
sh $(top_srcdir)/tclpkg/mkpkgindex.sh libtkspline.la Tkspline $(VERSION)
endif
+if ENABLE_MAN_PDFS
if HAVE_PS2PDF
tkspline.3tk.pdf: tkspline.3tk.ps
@PS2PDF@ $<
tkspline.3tk.ps: $(srcdir)/tkspline.3tk
@GROFF@ -Tps -man $< >$@
endif
+endif
EXTRA_DIST = $(man) $(pdf) dllEntry.c