+*.html
*.o
+*.xml
*~
.deps
Makefile
-NEWS.html
autom4te.cache
ccache
+ccache-*.tar.*
ccache.1
ccache.html
ccache.xml
+++ /dev/null
-BUILDING CODE FROM A RELEASE ARCHIVE
-====================================
-
-PREREQUISITES
--------------
-
-To build ccache, you need:
-
- - A C compiler (for instance GCC)
-
-It is also recommended that you have:
-
- - zlib <http://www.zlib.net> (if you don't have zlib installed, ccache will
- use a bundled copy)
-
-
-INSTALLATION
-------------
-
-To compile and install ccache, run these commands:
-
- ./configure
- make
- make install
-
-You may set the installation directory and other parameters by options to
-"./configure". To see them, run "./configure --help".
-
-There are two ways to use ccache. You can either prefix your compile commands
-with "ccache" or you can create a symbolic link between ccache and the names of
-your compilers. The first method is most convenient if you just want to try out
-ccache or wish to use it for some specific projects. The second method is most
-useful for when you wish to use ccache for all your compiles.
-
-To install for usage by the first method just copy ccache to somewhere in your
-path.
-
-To install for the second method do something like this:
-
- cp ccache /usr/local/bin/
- ln -s ccache /usr/local/bin/gcc
- ln -s ccache /usr/local/bin/g++
- ln -s ccache /usr/local/bin/cc
- ln -s ccache /usr/local/bin/c++
-
-This will work as long as /usr/local/bin comes before the path to the compiler
-(e.g. gcc, which is usually in /usr/bin). After installing you may wish to run
-"which gcc" to make sure that the correct link is being used.
-
-Note! Do not use hard links, use symbolic links. Hard links will cause
-"interesting" problems.
-
-
-BUILDING CODE FROM THE SOURCE CODE REPOSITORY
-=============================================
-
-In addition to the prerequisites mentioned above, you also need:
-
- - asciidoc (http://www.methods.co.nz/asciidoc/) to build the documentation.
- - autoconf (http://www.gnu.org/software/autoconf/)
-
-To debug and run the performance test suite you'll also need:
-
- - perl (http://www.perl.org/)
- - python (http://www.python.org/)
-
-Run "./autogen.sh" and then follow the steps mentioned under INSTALLATION
-above.
--- /dev/null
+ccache installation
+===================
+
+
+Building code from a release archive
+------------------------------------
+
+Prerequisites
+~~~~~~~~~~~~~
+
+To build ccache, you need:
+
+- A C compiler (for instance GCC)
+
+It is also recommended that you have:
+
+- zlib <http://www.zlib.net> (if you don't have zlib installed, ccache will
+ use a bundled copy)
+
+
+Installation
+~~~~~~~~~~~~
+
+To compile and install ccache, run these commands:
+
+ ./configure
+ make
+ make install
+
+You may set the installation directory and other parameters by options to
+``./configure''. To see them, run ``./configure --help''.
+
+There are two ways to use ccache. You can either prefix your compilation
+commands with ``ccache'' or you can create a symbolic link (named as your
+compiler) to ccache. The first method is most convenient if you just want to
+try out ccache or wish to use it for some specific projects. The second method
+is most useful for when you wish to use ccache for all your compilations.
+
+To install for usage by the first method just copy ccache to somewhere in your
+path.
+
+To install for the second method, do something like this:
+
+ cp ccache /usr/local/bin/
+ ln -s ccache /usr/local/bin/gcc
+ ln -s ccache /usr/local/bin/g++
+ ln -s ccache /usr/local/bin/cc
+ ln -s ccache /usr/local/bin/c++
+
+And so forth. This will work as long as ``/usr/local/bin'' comes before the
+path to the compiler (which is usually in ``/usr/bin''). After installing you
+may wish to run ``which gcc'' to make sure that the correct link is being used.
+
+NOTE: Do not use a hard link, use a symbolic link. A hard link will cause
+``interesting'' problems.
+
+
+Building code from the source code repository
+---------------------------------------------
+
+In addition to the prerequisites mentioned above, you also need:
+
+- AsciiDoc (http://www.methods.co.nz/asciidoc/) to build the documentation.
+- Autoconf (http://www.gnu.org/software/autoconf/)
+
+To debug and run the performance test suite you'll also need:
+
+- Perl (http://www.perl.org/)
+- Python (http://www.python.org/)
+
+Run "./autogen.sh" and then follow the steps mentioned under "Installation"
+above.
LDFLAGS = @LDFLAGS@
EXEEXT = @EXEEXT@
-ASCIIDOC = asciidoc
-XSLTPROC = xsltproc
-MANPAGE_XSL = /etc/asciidoc/docbook-xsl/manpage.xsl
-
libs = @LIBS@ -lm
sources = \
objs = $(all_sources:.c=.o)
-files_to_clean = $(objs) *~ ccache$(EXEEXT) ccache.1
+generated_docs = ccache.1 INSTALL.html manual.html NEWS.html README.html
+
+files_to_clean = $(objs) ccache$(EXEEXT) *~
.PHONY: all
all: ccache$(EXEEXT)
.PHONY: docs
-docs: ccache.1 ccache.html NEWS.html
+docs: $(generated_docs)
ccache$(EXEEXT): $(objs)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(objs) $(libs)
-ccache.xml: ccache.txt
- $(ASCIIDOC) -d manpage -b docbook $<
-
-ccache.html: ccache.txt
- $(ASCIIDOC) -a toc -b xhtml11 $<
-
-ccache.1: ccache.xml
+ccache.1: manual.xml
$(XSLTPROC) --nonet $(MANPAGE_XSL) $<
-NEWS.html: NEWS.txt
- $(ASCIIDOC) -a toc -b xhtml11 $<
-
.PHONY: install
install: all
$(installcmd) -d $(DESTDIR)$(bindir)
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+.txt.html:
+ $(ASCIIDOC) -a toc -b xhtml11 $<
+
+.txt.xml: manual.txt
+ $(ASCIIDOC) -d manpage -b docbook $<
+
@include_dev_mk@
-CCACHE
-======
+ccache README
+=============
-ABOUT
+
+About
-----
ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching
more information.
-INSTALLATION
+Documentation
+-------------
+
+See the ccache(1) man page. It's also avaiable as manual.txt and manual.html.
+
+
+Installation
------------
-See the INSTALL file.
+See INSTALL.txt or INSTALL.html.
-WEB SITE
+Web site
--------
The main ccache web site is here:
http://ccache.samba.org
-MAILING LIST
+Mailing list
------------
There is a mailing list for discussing usage and development of ccache:
Anyone is welcome to join.
-BUG REPORTS
+Bug reports
-----------
To submit a bug report or to search for existing reports, please visit this web
http://ccache.samba.org/bugs.html
-SOURCE CODE REPOSITORY
+Source code repository
----------------------
To get the very latest version of ccache directly from the source code
http://gitweb.samba.org/?p=ccache.git
-HISTORY
+History
-------
ccache was originally written by Andrew Tridgell and is currently maintained by
-Joel Rosdahl. ccache started out as a re-implementation of Erik Thiele's
-"compilercache" (see http://www.erikyyy.de/compilercache/) in C.
+Joel Rosdahl. ccache started out as a reimplementation of Erik Thiele's
+``compilercache'' (see http://www.erikyyy.de/compilercache/) in C.
See also the NEWS file.
-COPYRIGHT
+Copyright
---------
Copyright (C) 2002-2007 Andrew Tridgell
+# GNU make syntax reigns in this file.
+
CFLAGS += -Werror
CPPFLAGS += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$<)).d
+
+ASCIIDOC = asciidoc
+XSLTPROC = xsltproc
+MANPAGE_XSL = /etc/asciidoc/docbook-xsl/manpage.xsl
+
version = $(shell sed -n 's/^\#define CCACHE_VERSION "\(.*\)"/\1/p' \
$(srcdir)/ccache.h)
dist_dir = ccache-$(version)
dist_archive_tar_bz2 = ccache-$(version).tar.bz2
dist_archive_tar_gz = ccache-$(version).tar.gz
+
+generated_docs = ccache.1 INSTALL.html manual.html NEWS.html README.html
+built_dist_files = $(generated_docs)
+
files_to_clean += $(dist_archive_tar_bz2) $(dist_archive_tar_gz) .deps/*
+files_to_clean += $(built_dist_files)
source_dist_files = \
$(sources) $(headers) zlib/*.c zlib/*.h \
config.h.in configure configure-dev dev.mk.in install-sh Makefile.in \
- test.sh COPYING INSTALL NEWS README
-built_dist_files = ccache.1
+ test.sh COPYING INSTALL.txt NEWS.txt README.txt
dist_files = \
$(addprefix $(srcdir)/, $(source_dist_files)) \
$(built_dist_files)
$(MAKE) installcheck) && \
rm -rf $$tmpdir
+.PHONY: docs
+docs: $(generated_docs)
+
+%.html: %.txt
+ $(ASCIIDOC) -a toc -b xhtml11 $<
+
+%.xml: %.txt
+ $(ASCIIDOC) -d manpage -b docbook $<
+
.PHONY: check-syntax
check-syntax:
$(CC) @CPPFLAGS@ -I. $(CFLAGS) -S -o /dev/null $(CHK_SOURCES)
To install for the second method, do something like this:
- ln -s /usr/local/bin/ccache /usr/local/bin/gcc
- ln -s /usr/local/bin/ccache /usr/local/bin/g++
- ln -s /usr/local/bin/ccache /usr/local/bin/cc
- ln -s /usr/local/bin/ccache /usr/local/bin/c++
+ cp ccache /usr/local/bin/
+ ln -s ccache /usr/local/bin/gcc
+ ln -s ccache /usr/local/bin/g++
+ ln -s ccache /usr/local/bin/cc
+ ln -s ccache /usr/local/bin/c++
And so forth. This will work as long as +/usr/local/bin+ comes before the path
to the compiler (which is usually in +/usr/bin+). After installing you may wish