1# Makefile.in generated by automake 1.11.1 from Makefile.am. 2# @configure_input@ 3 4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 6# Inc. 7# This Makefile.in is free software; the Free Software Foundation 8# gives unlimited permission to copy and/or distribute it, 9# with or without modifications, as long as this notice is preserved. 10 11# This program is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 14# PARTICULAR PURPOSE. 15 16@SET_MAKE@ 17VPATH = @srcdir@ 18pkgdatadir = $(datadir)/@PACKAGE@ 19pkgincludedir = $(includedir)/@PACKAGE@ 20pkglibdir = $(libdir)/@PACKAGE@ 21pkglibexecdir = $(libexecdir)/@PACKAGE@ 22am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 23install_sh_DATA = $(install_sh) -c -m 644 24install_sh_PROGRAM = $(install_sh) -c 25install_sh_SCRIPT = $(install_sh) -c 26INSTALL_HEADER = $(INSTALL_DATA) 27transform = $(program_transform_name) 28NORMAL_INSTALL = : 29PRE_INSTALL = : 30POST_INSTALL = : 31NORMAL_UNINSTALL = : 32PRE_UNINSTALL = : 33POST_UNINSTALL = : 34build_triplet = @build@ 35host_triplet = @host@ 36subdir = docs 37DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in 38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 39am__aclocal_m4_deps = $(top_srcdir)/configure.in 40am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 41 $(ACLOCAL_M4) 42mkinstalldirs = $(install_sh) -d 43CONFIG_HEADER = $(top_builddir)/config.h 44CONFIG_CLEAN_FILES = 45CONFIG_CLEAN_VPATH_FILES = 46SOURCES = 47DIST_SOURCES = 48DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 49ACLOCAL = @ACLOCAL@ 50AMTAR = @AMTAR@ 51AR = @AR@ 52AUTOCONF = @AUTOCONF@ 53AUTOHEADER = @AUTOHEADER@ 54AUTOMAKE = @AUTOMAKE@ 55AWK = @AWK@ 56BOOST_CFLAGS = @BOOST_CFLAGS@ 57BOOST_LIBS = @BOOST_LIBS@ 58CC = @CC@ 59CCAS = @CCAS@ 60CCASDEPMODE = @CCASDEPMODE@ 61CCASFLAGS = @CCASFLAGS@ 62CCDEPMODE = @CCDEPMODE@ 63CFLAGS = @CFLAGS@ 64CPP = @CPP@ 65CPPFLAGS = @CPPFLAGS@ 66CXX = @CXX@ 67CXXDEPMODE = @CXXDEPMODE@ 68CXXFLAGS = @CXXFLAGS@ 69CYGPATH_W = @CYGPATH_W@ 70DEFAULT_SUPP = @DEFAULT_SUPP@ 71DEFS = @DEFS@ 72DEPDIR = @DEPDIR@ 73DIFF = @DIFF@ 74ECHO_C = @ECHO_C@ 75ECHO_N = @ECHO_N@ 76ECHO_T = @ECHO_T@ 77EGREP = @EGREP@ 78EXEEXT = @EXEEXT@ 79FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@ 80FLAG_M32 = @FLAG_M32@ 81FLAG_M64 = @FLAG_M64@ 82FLAG_MAIX32 = @FLAG_MAIX32@ 83FLAG_MAIX64 = @FLAG_MAIX64@ 84FLAG_MMMX = @FLAG_MMMX@ 85FLAG_MSSE = @FLAG_MSSE@ 86FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@ 87FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@ 88FLAG_W_EXTRA = @FLAG_W_EXTRA@ 89FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@ 90FLAG_W_NO_FORMAT_ZERO_LENGTH = @FLAG_W_NO_FORMAT_ZERO_LENGTH@ 91FLAG_W_NO_UNINITIALIZED = @FLAG_W_NO_UNINITIALIZED@ 92GDB = @GDB@ 93GLIBC_VERSION = @GLIBC_VERSION@ 94GREP = @GREP@ 95INSTALL = @INSTALL@ 96INSTALL_DATA = @INSTALL_DATA@ 97INSTALL_PROGRAM = @INSTALL_PROGRAM@ 98INSTALL_SCRIPT = @INSTALL_SCRIPT@ 99INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 100LDFLAGS = @LDFLAGS@ 101LIBOBJS = @LIBOBJS@ 102LIBS = @LIBS@ 103LN_S = @LN_S@ 104LTLIBOBJS = @LTLIBOBJS@ 105MAINT = @MAINT@ 106MAKEINFO = @MAKEINFO@ 107MKDIR_P = @MKDIR_P@ 108MPI_CC = @MPI_CC@ 109OBJEXT = @OBJEXT@ 110PACKAGE = @PACKAGE@ 111PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 112PACKAGE_NAME = @PACKAGE_NAME@ 113PACKAGE_STRING = @PACKAGE_STRING@ 114PACKAGE_TARNAME = @PACKAGE_TARNAME@ 115PACKAGE_URL = @PACKAGE_URL@ 116PACKAGE_VERSION = @PACKAGE_VERSION@ 117PATH_SEPARATOR = @PATH_SEPARATOR@ 118PERL = @PERL@ 119PKG_CONFIG = @PKG_CONFIG@ 120PREFERRED_STACK_BOUNDARY = @PREFERRED_STACK_BOUNDARY@ 121QTCORE_CFLAGS = @QTCORE_CFLAGS@ 122QTCORE_LIBS = @QTCORE_LIBS@ 123RANLIB = @RANLIB@ 124SED = @SED@ 125SET_MAKE = @SET_MAKE@ 126SHELL = @SHELL@ 127STRIP = @STRIP@ 128VALT_LOAD_ADDRESS_PRI = @VALT_LOAD_ADDRESS_PRI@ 129VALT_LOAD_ADDRESS_SEC = @VALT_LOAD_ADDRESS_SEC@ 130VERSION = @VERSION@ 131VGCONF_ARCH_PRI = @VGCONF_ARCH_PRI@ 132VGCONF_ARCH_SEC = @VGCONF_ARCH_SEC@ 133VGCONF_OS = @VGCONF_OS@ 134VGCONF_PLATFORM_PRI_CAPS = @VGCONF_PLATFORM_PRI_CAPS@ 135VGCONF_PLATFORM_SEC_CAPS = @VGCONF_PLATFORM_SEC_CAPS@ 136abs_builddir = @abs_builddir@ 137abs_srcdir = @abs_srcdir@ 138abs_top_builddir = @abs_top_builddir@ 139abs_top_srcdir = @abs_top_srcdir@ 140ac_ct_CC = @ac_ct_CC@ 141ac_ct_CXX = @ac_ct_CXX@ 142am__include = @am__include@ 143am__leading_dot = @am__leading_dot@ 144am__quote = @am__quote@ 145am__tar = @am__tar@ 146am__untar = @am__untar@ 147bindir = @bindir@ 148build = @build@ 149build_alias = @build_alias@ 150build_cpu = @build_cpu@ 151build_os = @build_os@ 152build_vendor = @build_vendor@ 153builddir = @builddir@ 154datadir = @datadir@ 155datarootdir = @datarootdir@ 156docdir = @docdir@ 157dvidir = @dvidir@ 158exec_prefix = @exec_prefix@ 159host = @host@ 160host_alias = @host_alias@ 161host_cpu = @host_cpu@ 162host_os = @host_os@ 163host_vendor = @host_vendor@ 164htmldir = @htmldir@ 165includedir = @includedir@ 166infodir = @infodir@ 167install_sh = @install_sh@ 168libdir = @libdir@ 169libexecdir = @libexecdir@ 170localedir = @localedir@ 171localstatedir = @localstatedir@ 172mandir = @mandir@ 173mkdir_p = @mkdir_p@ 174oldincludedir = @oldincludedir@ 175pdfdir = @pdfdir@ 176prefix = @prefix@ 177program_transform_name = @program_transform_name@ 178psdir = @psdir@ 179sbindir = @sbindir@ 180sharedstatedir = @sharedstatedir@ 181srcdir = @srcdir@ 182sysconfdir = @sysconfdir@ 183target_alias = @target_alias@ 184top_build_prefix = @top_build_prefix@ 185top_builddir = @top_builddir@ 186top_srcdir = @top_srcdir@ 187 188# Comment out the next line to skip building print docs. The default 189# is not to skip building print docs. Note, after changing it 190# you of course need to re-run configure to make it take effect. 191BUILD_ALL_DOCS = yes 192EXTRA_DIST = \ 193 README \ 194 images/home.png \ 195 images/next.png \ 196 images/prev.png \ 197 images/up.png \ 198 internals/3_0_BUGSTATUS.txt \ 199 internals/3_1_BUGSTATUS.txt \ 200 internals/3_2_BUGSTATUS.txt \ 201 internals/3_3_BUGSTATUS.txt \ 202 internals/3_4_BUGSTATUS.txt \ 203 internals/3_5_BUGSTATUS.txt \ 204 internals/BIG_APP_NOTES.txt \ 205 internals/Darwin-notes.txt \ 206 internals/directory-structure.txt \ 207 internals/howto_BUILD_KDE42.txt \ 208 internals/howto_oprofile.txt \ 209 internals/m_replacemalloc.txt \ 210 internals/m_syswrap.txt \ 211 internals/module-structure.txt \ 212 internals/notes.txt \ 213 internals/porting-HOWTO.txt \ 214 internals/mpi2entries.txt \ 215 internals/porting-to-ARM.txt \ 216 internals/register-uses.txt \ 217 internals/release-HOWTO.txt \ 218 internals/segments-seginfos.txt \ 219 internals/threads-syscalls-signals.txt \ 220 internals/tm-mutexstates.dot \ 221 internals/tm-threadstates.dot \ 222 internals/tracking-fn-entry-exit.txt \ 223 internals/why-no-libc.txt \ 224 internals/xml-output.txt \ 225 internals/xml-output-protocol4.txt \ 226 lib/line-wrap.xsl \ 227 lib/vg_basic.css \ 228 lib/vg-fo.xsl \ 229 lib/vg-faq2txt.xsl \ 230 lib/vg-html-chunk.xsl \ 231 lib/vg-html-website.xsl \ 232 lib/vg-html-common.xsl \ 233 xml/FAQ.xml \ 234 xml/dist-docs.xml \ 235 xml/index.xml \ 236 xml/licenses.xml \ 237 xml/manpages-index.xml \ 238 xml/manual.xml \ 239 xml/manual-intro.xml \ 240 xml/manual-core.xml \ 241 xml/manual-core-adv.xml \ 242 xml/manual-writing-tools.xml \ 243 xml/design-impl.xml \ 244 xml/quick-start-guide.xml \ 245 xml/tech-docs.xml \ 246 xml/valgrind-manpage.xml \ 247 xml/vg-entities.xml \ 248 xml/xml_help.txt 249 250myxmldir = $(top_srcdir)/docs/xml 251myimgdir = $(top_srcdir)/docs/images 252mylibdir = $(top_srcdir)/docs/lib 253myhtmldir = $(top_builddir)/docs/html 254myprintdir = $(top_builddir)/docs/print 255websitedir = $(top_builddir)/docs/website 256valkyriedir = $(top_builddir)/docs/vg-html 257downloadsdir = $(top_builddir)/docs/downloads 258vgdir = $(top_builddir)/docs/valgrind 259XML_CATALOG_FILES = /etc/xml/catalog 260 261# file to log print output to 262LOGFILE = print.log 263 264# validation stuff 265XMLLINT = xmllint 266LINT_FLAGS = --noblanks --noout --xinclude --postvalid --noent 267# validate with docbook 4.3 'cos it supports xml:base natively 268VALID_FLAGS = --dtdvalid http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd 269XMLLINT_FLAGS = $(LINT_FLAGS) $(VALID_FLAGS) 270 271# stylesheet processor 272XSLTPROC = xsltproc 273XSLTPROC_FLAGS = --nonet --xinclude 274 275# stylesheets 276XSL_HTML_CHUNK_STYLE = $(mylibdir)/vg-html-chunk.xsl 277XSL_FO_STYLE = $(mylibdir)/vg-fo.xsl 278XSL_TEXT_STYLE = $(mylibdir)/vg-faq2txt.xsl 279XSL_WEBSITE_STYLE = $(mylibdir)/vg-html-website.xsl 280XSL_MAN_STYLES = \ 281 /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl \ 282 /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl 283 284all: all-am 285 286.SUFFIXES: 287$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) 288 @for dep in $?; do \ 289 case '$(am__configure_deps)' in \ 290 *$$dep*) \ 291 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ 292 && { if test -f $@; then exit 0; else break; fi; }; \ 293 exit 1;; \ 294 esac; \ 295 done; \ 296 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign docs/Makefile'; \ 297 $(am__cd) $(top_srcdir) && \ 298 $(AUTOMAKE) --foreign docs/Makefile 299.PRECIOUS: Makefile 300Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 301 @case '$?' in \ 302 *config.status*) \ 303 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 304 *) \ 305 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 306 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 307 esac; 308 309$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 310 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 311 312$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 313 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 314$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) 315 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 316$(am__aclocal_m4_deps): 317tags: TAGS 318TAGS: 319 320ctags: CTAGS 321CTAGS: 322 323 324distdir: $(DISTFILES) 325 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 326 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 327 list='$(DISTFILES)'; \ 328 dist_files=`for file in $$list; do echo $$file; done | \ 329 sed -e "s|^$$srcdirstrip/||;t" \ 330 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ 331 case $$dist_files in \ 332 */*) $(MKDIR_P) `echo "$$dist_files" | \ 333 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ 334 sort -u` ;; \ 335 esac; \ 336 for file in $$dist_files; do \ 337 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 338 if test -d $$d/$$file; then \ 339 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 340 if test -d "$(distdir)/$$file"; then \ 341 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 342 fi; \ 343 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 344 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ 345 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 346 fi; \ 347 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ 348 else \ 349 test -f "$(distdir)/$$file" \ 350 || cp -p $$d/$$file "$(distdir)/$$file" \ 351 || exit 1; \ 352 fi; \ 353 done 354 $(MAKE) $(AM_MAKEFLAGS) \ 355 top_distdir="$(top_distdir)" distdir="$(distdir)" \ 356 dist-hook 357check-am: all-am 358check: check-am 359all-am: Makefile 360installdirs: 361install: install-am 362install-exec: install-exec-am 363install-data: install-data-am 364uninstall: uninstall-am 365 366install-am: all-am 367 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 368 369installcheck: installcheck-am 370install-strip: 371 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 372 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 373 `test -z '$(STRIP)' || \ 374 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 375mostlyclean-generic: 376 377clean-generic: 378 379distclean-generic: 380 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 381 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) 382 383maintainer-clean-generic: 384 @echo "This command is intended for maintainers to use" 385 @echo "it deletes files that may require special tools to rebuild." 386clean: clean-am 387 388clean-am: clean-generic mostlyclean-am 389 390distclean: distclean-am 391 -rm -f Makefile 392distclean-am: clean-am distclean-generic distclean-local 393 394dvi: dvi-am 395 396dvi-am: 397 398html: html-am 399 400html-am: 401 402info: info-am 403 404info-am: 405 406install-data-am: 407 @$(NORMAL_INSTALL) 408 $(MAKE) $(AM_MAKEFLAGS) install-data-hook 409install-dvi: install-dvi-am 410 411install-dvi-am: 412 413install-exec-am: 414 415install-html: install-html-am 416 417install-html-am: 418 419install-info: install-info-am 420 421install-info-am: 422 423install-man: 424 425install-pdf: install-pdf-am 426 427install-pdf-am: 428 429install-ps: install-ps-am 430 431install-ps-am: 432 433installcheck-am: 434 435maintainer-clean: maintainer-clean-am 436 -rm -f Makefile 437maintainer-clean-am: distclean-am maintainer-clean-generic 438 439mostlyclean: mostlyclean-am 440 441mostlyclean-am: mostlyclean-generic 442 443pdf: pdf-am 444 445pdf-am: 446 447ps: ps-am 448 449ps-am: 450 451uninstall-am: 452 453.MAKE: install-am install-data-am install-strip 454 455.PHONY: all all-am check check-am clean clean-generic dist-hook \ 456 distclean distclean-generic distclean-local distdir dvi dvi-am \ 457 html html-am info info-am install install-am install-data \ 458 install-data-am install-data-hook install-dvi install-dvi-am \ 459 install-exec install-exec-am install-html install-html-am \ 460 install-info install-info-am install-man install-pdf \ 461 install-pdf-am install-ps install-ps-am install-strip \ 462 installcheck installcheck-am installdirs maintainer-clean \ 463 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ 464 pdf-am ps ps-am uninstall uninstall-am 465 466 467all-docs: FAQ.txt man-pages html-docs print-docs 468 469valid: 470 $(XMLLINT) $(XMLLINT_FLAGS) $(myxmldir)/index.xml 471 472# The text version of the FAQ. 473FAQ.txt: 474 @echo "Generating the text version of the FAQ ..." 475 export XML_CATALOG_FILES=$(XML_CATALOG_FILES) && \ 476 $(XSLTPROC) $(XSLTPROC_FLAGS) -o ./FAQ.txt $(XSL_TEXT_STYLE) $(myxmldir)/FAQ.xml 477 478# the valgrind manpages 479man-pages: 480 for x in $(XSL_MAN_STYLES) ; do \ 481 if test -f $$x; then \ 482 echo "Using manpage stylesheet: $$x"; \ 483 export XML_CATALOG_FILES=$(XML_CATALOG_FILES) && \ 484 $(XSLTPROC) $(XSLTPROC_FLAGS) -o ./ $$x $(myxmldir)/manpages-index.xml; \ 485 exit 0; \ 486 fi; \ 487 done; \ 488 echo ""; \ 489 echo "Error: I can't find the XSL_MAN_STYLE file"; \ 490 echo "Please check where it lives on your system, and" \ 491 "amend the line 'XSL_MAN_STYLES = ' in this Makefile."; \ 492 exit 1; 493 494# chunked html, on a chapter-by-chapter basis 495html-docs: 496 @echo "Generating html files..." 497 export XML_CATALOG_FILES=$(XML_CATALOG_FILES) && \ 498 mkdir -p $(myhtmldir) && \ 499 /bin/rm -fr $(myhtmldir)/ && \ 500 mkdir -p $(myhtmldir)/ && \ 501 mkdir -p $(myhtmldir)/images && \ 502 cp $(mylibdir)/vg_basic.css $(myhtmldir)/ && \ 503 cp $(myimgdir)/*.png $(myhtmldir)/images && \ 504 $(XSLTPROC) $(XSLTPROC_FLAGS) -o $(myhtmldir)/ $(XSL_HTML_CHUNK_STYLE) $(myxmldir)/index.xml 505 506# pdf and postscript 507print-docs: 508 @echo "Generating PDF file: $(myprintdir)/index.pdf (please be patient)..."; 509 export XML_CATALOG_FILES=$(XML_CATALOG_FILES) && \ 510 mkdir -p $(myprintdir) && \ 511 mkdir -p $(myprintdir)/images && \ 512 $(XSLTPROC) $(XSLTPROC_FLAGS) -o $(myprintdir)/index.fo $(XSL_FO_STYLE) $(myxmldir)/index.xml && \ 513 (cd $(myprintdir) && \ 514 ( pdfxmltex index.fo && \ 515 pdfxmltex index.fo && \ 516 pdfxmltex index.fo ) &> $(LOGFILE) < /dev/null && \ 517 echo "Generating PS file: $(myprintdir)/index.ps ..." && \ 518 pdftops index.pdf && \ 519 rm -f *.log *.aux *.fo *.out) 520 521# If the docs have been built, install them. But don't worry if they have 522# not -- developers do 'make install' not from a 'make dist'-ified distro all 523# the time. 524# 525# Note: this is done at 'make install' time. 526# Note 2: the ifeq/else/endif have to be indented one space 527# because otherwise it seems that automake thinks it should 528# be the one to handle the else/endif parts, not GNU make 529# as we intend. 530install-data-hook: 531 if test -r html ; then \ 532 mkdir -p $(DESTDIR)$(datadir)/doc/valgrind; \ 533 cp -r html $(DESTDIR)$(datadir)/doc/valgrind; \ 534 fi 535 for f in *.1 ; do \ 536 if test -r $$f ; then \ 537 mkdir -p $(DESTDIR)$(mandir)/man1; \ 538 cp $$f $(DESTDIR)$(mandir)/man1; \ 539 fi \ 540 done 541 ifeq ($(BUILD_ALL_DOCS),yes) 542 if test -r index.pdf ; then \ 543 mkdir -p $(DESTDIR)$(datadir)/doc/valgrind; \ 544 cp index.pdf $(DESTDIR)$(datadir)/doc/valgrind/valgrind_manual.pdf; \ 545 fi 546 if test -r index.ps ; then \ 547 mkdir -p $(DESTDIR)$(datadir)/doc/valgrind; \ 548 cp index.ps $(DESTDIR)$(datadir)/doc/valgrind/valgrind_manual.ps; \ 549 fi 550 endif 551 552# This is done at 'make dist' time. It builds the html docs, print 553# docs and man pages and copies them into the docs/ directory in the 554# tarball. 555 ifeq ($(BUILD_ALL_DOCS),yes) 556dist-hook: FAQ.txt html-docs man-pages print-docs 557 cp -r html $(distdir) 558 cp FAQ.txt $(distdir)/.. 559 cp *.1 $(distdir) 560 cp print/index.pdf $(distdir) 561 cp print/index.ps $(distdir) 562 else 563dist-hook: FAQ.txt html-docs man-pages 564 cp -r html $(distdir) 565 cp FAQ.txt $(distdir)/.. 566 cp *.1 $(distdir) 567 endif 568 569distclean-local: 570 rm -rf html print 571 rm -f $(top_builddir)/FAQ.txt $(top_builddir)/docs/*.1 572 573# ----------------------------------------------------------------------- 574# Note: the rest of this file is nothing to do with the normal build 575# tree. The stuff below contains special targets for web-site 576# artefacts. 577 578# chunked html with no html/body tags, css, or top nav, to fit into the website 579website-docs: 580 @echo "Generating website html files ..." 581 export XML_CATALOG_FILES=$(XML_CATALOG_FILES) 582 /bin/rm -fr $(websitedir) 583 mkdir -p $(websitedir) 584 $(XSLTPROC) $(XSLTPROC_FLAGS) -o $(websitedir)/ $(XSL_WEBSITE_STYLE) $(myxmldir)/index.xml 585 586# valkyrie carries around her own copy of the valgrind manual 587valkyrie-docs: 588 @echo "Generating a set of valgrind docs for valkyrie..." 589 export XML_CATALOG_FILES=$(XML_CATALOG_FILES) 590 /bin/rm -fr $(valkyriedir) 591 mkdir -p $(valkyriedir) 592 mkdir -p $(valkyriedir)/images 593 cp $(mylibdir)/vg_basic.css $(valkyriedir)/ 594 cp $(myimgdir)/*.png $(valkyriedir)/images/ 595 $(XSLTPROC) $(XSLTPROC_FLAGS) -o $(valkyriedir)/ $(XSL_HTML_CHUNK_STYLE) $(myxmldir)/index.xml 596 597# html.tar.bz2, .pdf, .ps.bz2 files for downloading from the website 598download-docs: 599 export XML_CATALOG_FILES=$(XML_CATALOG_FILES) 600 /bin/rm -fr $(downloadsdir) 601 mkdir -p $(downloadsdir) 602 @echo "" 603 @echo "Generating valgrind_manual.html.tar.bz2 ..." 604 export XML_CATALOG_FILES=$(XML_CATALOG_FILES) 605 /bin/rm -fr $(vgdir) 606 mkdir -p $(vgdir) 607 mkdir -p $(vgdir)/html 608 mkdir -p $(vgdir)/html/images 609 cp $(mylibdir)/vg_basic.css $(vgdir)/html/ 610 cp $(myimgdir)/*.png $(vgdir)/html/images/ 611 $(XSLTPROC) $(XSLTPROC_FLAGS) -o $(vgdir)/html/ $(XSL_HTML_CHUNK_STYLE) $(myxmldir)/index.xml 612 (cd $(top_builddir)/docs/ && \ 613 (tar cfj $(downloadsdir)/valgrind_manual.html.tar.bz2 ./valgrind/html/ ) ) 614 /bin/rm -fr $(vgdir)/html/ 615 @echo "" 616 @echo "Generating valgrind_manual.pdf ..." 617 mkdir -p $(vgdir)/print 618 mkdir -p $(vgdir)/print/images 619 $(XSLTPROC) $(XSLTPROC_FLAGS) -o $(vgdir)/print/manual.fo $(XSL_FO_STYLE) $(myxmldir)/index.xml 620 (cd $(vgdir)/print/ && \ 621 ( pdfxmltex manual.fo && \ 622 pdfxmltex manual.fo && \ 623 pdfxmltex manual.fo ) &> $(LOGFILE) < /dev/null ) 624 @echo "" 625 @echo "Generating valgrind_manual.ps.bz2 ..." 626 (cd $(vgdir)/print/ && \ 627 ( pdftops manual.pdf ) ) 628 mv $(vgdir)/print/manual.pdf $(downloadsdir)/valgrind_manual.pdf 629 mv $(vgdir)/print/manual.ps $(downloadsdir)/valgrind_manual.ps 630 bzip2 $(downloadsdir)/valgrind_manual.ps 631 /bin/rm -fr $(vgdir) 632 633# Tell versions [3.59,3.63) of GNU make to not export all variables. 634# Otherwise a system limit (for SysV at least) may be exceeded. 635.NOEXPORT: 636