Install KissCount into /usr/local instead of /usr

This commit is contained in:
Grégory Soutadé 2011-08-09 17:55:46 +02:00
parent f8f108ea8b
commit c05fcdc250
2 changed files with 10 additions and 8 deletions

View File

@ -1,7 +1,8 @@
LIB_DIR=$(DESTDIR)"/usr/lib/kisscount/"
SHARE_DIR=$(DESTDIR)"/usr/share/kisscount/"
DOC_DIR=$(DESTDIR)"/usr/share/doc/kisscount/"
BIN_DIR=$(DESTDIR)"/usr/bin/"
ROOT_DIR="/usr/local"
LIB_DIR=$(DESTDIR)$(ROOT_DIR)"/lib/kisscount/"
SHARE_DIR=$(DESTDIR)$(ROOT_DIR)"/share/kisscount/"
DOC_DIR=$(DESTDIR)$(ROOT_DIR)"/share/doc/kisscount/"
BIN_DIR=$(DESTDIR)$(ROOT_DIR)"/bin/"
CXXFLAGS+=`wx-config --cxxflags` -Wall -Isrc -ggdb
CXXFLAGS+=-I./lib/wxsqlite3-1.9.9/include
@ -59,7 +60,7 @@ endif
install:
mkdir -p $(LIB_DIR) $(BIN_DIR) $(SHARE_DIR) $(DOC_DIR)
cp kc $(BIN_DIR)
cp -rf lib/*.so* $(LIB_DIR)
find lib -name '*.so*' -exec cp -rf \{\} $(LIB_DIR) \;
cp -rf ressources/* $(SHARE_DIR)
cp -rf README* ChangeLog CONTRIBUTORS COPYING TODO $(DOC_DIR)

View File

@ -19,9 +19,10 @@
# You should have received a copy of the GNU General Public License
# along with KissCount. If not, see <http://www.gnu.org/licenses/>.
SHARE_DIR=/usr/share/kisscount
LIB_DIR=/usr/lib/kisscount
BIN_DIR=/usr/bin
ROOT_DIR=/usr/local
SHARE_DIR=$ROOT_DIR/share/kisscount
LIB_DIR=$ROOT_DIR/lib/kisscount
BIN_DIR=$ROOT_DIR/bin
case "$1" in
--install|-i)