General
-------

Before compiling, you may want to change the installation paths in the 
file CMakeLists.txt (the defaults should be OK though).
To compile and install this plugin, execute the following commands:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
make
sudo make install

Debian, Ubuntu, ...
-------------------

For some stupid reason, the Kate development files are not included in Debian
(and derived distributions such as Ubuntu, ...) anymore. Therefore, the
missing files are included in a separate debian_sucks_for_not_shipping_this
directory. In order for the compilation to find these files, you must compile
as above, but replace the cmake line with the following:

cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DDEBIAN_SUCKS=1 ..

Creating quick-and-dirty package for Debian, Ubuntu, ...
--------------------------------------------------------

Users of a Debian system (including Ubuntu, ...) can create a quick-and-dirty
deb package by executing (instead of the above commands):

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DDEBIAN_SUCKS=1 ..
make
cpack -G DEB

and install it with:

sudo dpkg -i katelatexplugin*.deb
