Install KissCount into /usr/local instead of /usr
This commit is contained in:
parent
f8f108ea8b
commit
c05fcdc250
11
Makefile
11
Makefile
|
@ -1,7 +1,8 @@
|
||||||
LIB_DIR=$(DESTDIR)"/usr/lib/kisscount/"
|
ROOT_DIR="/usr/local"
|
||||||
SHARE_DIR=$(DESTDIR)"/usr/share/kisscount/"
|
LIB_DIR=$(DESTDIR)$(ROOT_DIR)"/lib/kisscount/"
|
||||||
DOC_DIR=$(DESTDIR)"/usr/share/doc/kisscount/"
|
SHARE_DIR=$(DESTDIR)$(ROOT_DIR)"/share/kisscount/"
|
||||||
BIN_DIR=$(DESTDIR)"/usr/bin/"
|
DOC_DIR=$(DESTDIR)$(ROOT_DIR)"/share/doc/kisscount/"
|
||||||
|
BIN_DIR=$(DESTDIR)$(ROOT_DIR)"/bin/"
|
||||||
|
|
||||||
CXXFLAGS+=`wx-config --cxxflags` -Wall -Isrc -ggdb
|
CXXFLAGS+=`wx-config --cxxflags` -Wall -Isrc -ggdb
|
||||||
CXXFLAGS+=-I./lib/wxsqlite3-1.9.9/include
|
CXXFLAGS+=-I./lib/wxsqlite3-1.9.9/include
|
||||||
|
@ -59,7 +60,7 @@ endif
|
||||||
install:
|
install:
|
||||||
mkdir -p $(LIB_DIR) $(BIN_DIR) $(SHARE_DIR) $(DOC_DIR)
|
mkdir -p $(LIB_DIR) $(BIN_DIR) $(SHARE_DIR) $(DOC_DIR)
|
||||||
cp kc $(BIN_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 ressources/* $(SHARE_DIR)
|
||||||
cp -rf README* ChangeLog CONTRIBUTORS COPYING TODO $(DOC_DIR)
|
cp -rf README* ChangeLog CONTRIBUTORS COPYING TODO $(DOC_DIR)
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
# along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
SHARE_DIR=/usr/share/kisscount
|
ROOT_DIR=/usr/local
|
||||||
LIB_DIR=/usr/lib/kisscount
|
SHARE_DIR=$ROOT_DIR/share/kisscount
|
||||||
BIN_DIR=/usr/bin
|
LIB_DIR=$ROOT_DIR/lib/kisscount
|
||||||
|
BIN_DIR=$ROOT_DIR/bin
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--install|-i)
|
--install|-i)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user