Generate and install a pkg-config file. Add DESTDIR support to Makefile.
commit29578cb0d74a842e871038e97e858baf15b1fecc
authorJosh Triplett <josh@freedesktop.org>
Tue, 5 Dec 2006 10:15:02 +0000 (5 02:15 -0800)
committerJosh Triplett <josh@freedesktop.org>
Tue, 5 Dec 2006 10:18:19 +0000 (5 02:18 -0800)
tree19661ecb4536004633b78d4379263f61abe40646
parent01bd4dbe25c545234e19cb5e6453cf96a98b9f99
Generate and install a pkg-config file.  Add DESTDIR support to Makefile.

The Makefile now generates and installs a pkg-config file, sparse.pc, to
provide information about the installed Sparse library and header files.  Use
`pkg-config --cflags sparse` to get the include path, and `pkg-config --libs
sparse` to get the library path and library.

To help packagers of Sparse, also add support for the DESTDIR variable to the
Makefile.  DESTDIR allows you to target a particular prefix (such as /usr),
but install to another directory (such as debian/tmp), usually for the
purposes of subsequently constructing a package from that directory.
Previously, just setting PREFIX would work for that, but with the new
pkg-config file, the Makefile needs to know the real prefix.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
.gitignore
Makefile
sparse.pc.in [new file with mode: 0644]