summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authornjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-08-07 08:31:58 +0000
committernjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-08-07 08:31:58 +0000
commit4d6cb9e7210c65a0963f38727c923847f72bed9c (patch)
treea1c9bdf73017065b5f8ecd0d797171dd8c3e5b09 /docs
parentc206a819470901013b39759f1dfc4cc530540164 (diff)
Install all the new man pages. Include them in 'make dist' too (even if
BUILD_ALL_DOCS is false; we've built them anyway). Delete them with 'make distclean' too (and FAQ.txt). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10745 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile.am21
1 files changed, 12 insertions, 9 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am
index f0151fd5..9e9840c8 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -179,6 +179,12 @@ install-data-hook:
mkdir -p $(DESTDIR)$(datadir)/doc/valgrind; \
cp -r html $(DESTDIR)$(datadir)/doc/valgrind; \
fi
+ for f in *.1 ; do \
+ if test -r $$f ; then \
+ mkdir -p $(DESTDIR)$(mandir)/man1; \
+ cp $$f $(DESTDIR)$(mandir)/man1; \
+ fi \
+ done
ifeq ($(BUILD_ALL_DOCS),yes)
if test -r index.pdf ; then \
mkdir -p $(DESTDIR)$(datadir)/doc/valgrind; \
@@ -188,31 +194,28 @@ install-data-hook:
mkdir -p $(DESTDIR)$(datadir)/doc/valgrind; \
cp index.ps $(DESTDIR)$(datadir)/doc/valgrind/valgrind_manual.ps; \
fi
- if test -r valgrind.1 ; then \
- mkdir -p $(DESTDIR)$(mandir)/man1; \
- cp valgrind.1 $(DESTDIR)$(mandir)/man1/valgrind.1; \
- fi
endif
# This is done at 'make dist' time. It builds the html docs, print
-# docs and man page and copies them into the docs/ directory in the
+# docs and man pages and copies them into the docs/ directory in the
# tarball.
ifeq ($(BUILD_ALL_DOCS),yes)
-dist-hook: FAQ.txt html-docs print-docs man-pages
+dist-hook: FAQ.txt html-docs man-pages print-docs
cp -r html $(distdir)
cp FAQ.txt $(distdir)/..
- cp valgrind.1 $(distdir)
+ cp *.1 $(distdir)
cp print/index.pdf $(distdir)
cp print/index.ps $(distdir)
else
dist-hook: FAQ.txt html-docs man-pages
- cp FAQ.txt $(distdir)/..
cp -r html $(distdir)
+ cp FAQ.txt $(distdir)/..
+ cp *.1 $(distdir)
endif
distclean-local:
rm -rf html print
- rm -f $(top_builddir)/FAQ.txt
+ rm -f $(top_builddir)/FAQ.txt $(top_builddir)/docs/*.1