From ccc80bcdc422ec6bf5c41863362bab36274c67ca Mon Sep 17 00:00:00 2001
From: "Michael[tm] Smith"
Date: Wed, 28 Mar 2012 00:41:17 +0900
Subject: [PATCH] Add info about building shared lib. Fixes #25.
Thanks Chris Love.
---
README.html | 17 ++++++++++++++++-
README.md | 19 +++++++++++++++++--
2 files changed, 33 insertions(+), 3 deletions(-)
diff --git a/README.html b/README.html
index 7464765..05a1eaa 100644
--- a/README.html
+++ b/README.html
@@ -17,7 +17,9 @@ The changes for HTML5 support started from a
For more information, see
w3c.github.com/tidy-html5
-
For *nix platforms, you can build and install from the source code using the
+
Building the tidy command-line tool
+For Linux/BSD/OSX platforms, you can build and install the
+tidy
command-line tool from the source code using the
following steps.
@@ -27,3 +29,16 @@ following steps.
Note that you will either need to run make install
as root,
or with sudo make install
.
+
+Building the libtidy shared library
+For Linux/BSD/OSX platforms, you can build and install the
+tidylib
shared library (for use in building other
+applications) from the source code using the following steps.
+
+
+- sh build/gnuauto/setup.sh && ./configure && make
+- make install
+
+
+Note that you will either need to run make install
as root,
+or with sudo make install
.
diff --git a/README.md b/README.md
index 63afc1f..ff363bd 100644
--- a/README.md
+++ b/README.md
@@ -12,8 +12,10 @@ For more information, see [w3c.github.com/tidy-html5][3]
[3]: http://w3c.github.com/tidy-html5/
-For *nix platforms, you can build and install from the source code using the
-following steps.
+## Building the tidy command-line tool
+
+For Linux/BSD/OSX platforms, you can build and install the `tidy` command-line
+tool from the source code using the following steps.
1. `make -C build/gmake/`
@@ -22,3 +24,16 @@ following steps.
Note that you will either need to run `make install` as root, or with `sudo make
install`.
+## Building the libtidy shared library
+
+For Linux/BSD/OSX platforms, you can build and install the `tidylib` shared
+library (for use in building other applications) from the source code using the
+following steps.
+
+ 1. sh build/gnuauto/setup.sh && ./configure && make
+
+ 2. make install
+
+Note that you will either need to run `make install` as root, or with `sudo make
+install`.
+