Change PREFIX variable in HOST
This commit is contained in:
parent
1fd9c73587
commit
9b91448492
2
Makefile
2
Makefile
|
@ -24,7 +24,7 @@ LDFLAGS+=-L./lib/wxsqlite3-1.9.9/lib/ -lwxcode_gtk2u_wxsqlite3-2.8
|
|||
LDFLAGS+=-L./lib/freechart/lib -lwxcode_gtk2u_freechart-2.8
|
||||
endif
|
||||
|
||||
CXX=$(PREFIX)g++
|
||||
CXX=$(HOST)g++
|
||||
|
||||
SOURCES=$(shell find src -name '*.cpp' -type f | tr '\n' ' ')
|
||||
HEADERS=$(shell find src -name '*.h' -type f)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
DATE=`date +%d.%m.%Y`
|
||||
[ -z "$ARCH" ] && ARCH=`${PREFIX}gcc -dumpmachine | cut -d- -f1`
|
||||
[ -z "$ARCH" ] && ARCH=`${HOST}gcc -dumpmachine | cut -d- -f1`
|
||||
VERSION=`cat src/controller/KissCount.h | grep APP_VERSION | cut -d\" -f2`
|
||||
DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}"
|
||||
FILE="$DIR.tar.bz2"
|
||||
|
@ -21,7 +21,7 @@ make || (echo "Compilation failed" ; exit 1)
|
|||
mkdir -p "$DIR"/lib
|
||||
cp -r lib/freechart/lib/*.so* lib/wxsqlite3-1.9.9/lib/*.so* "$DIR"/lib
|
||||
cp -r kc ressources TODO CONTRIBUTORS COPYING README* www "$DIR"
|
||||
find "$DIR" -type f -executable -exec ${PREFIX}strip \{\} \;
|
||||
find "$DIR" -type f -executable -exec ${HOST}strip \{\} \;
|
||||
tar -jcf "$FILE" "$DIR"
|
||||
rm -rf "$DIR"
|
||||
|
||||
|
@ -32,7 +32,7 @@ rm -rf "$DEB_DIR" "$DEB_FILE"
|
|||
mkdir -p "$DEB_DIR/lib"
|
||||
cp -r lib/freechart/lib/*.so* lib/wxsqlite3-1.9.9/lib/*.so* "$DEB_DIR/lib"
|
||||
cp -r kc.1 kc debian README* ChangeLog TODO CONTRIBUTORS ressources "$DEB_DIR"
|
||||
${PREFIX}strip "$DEB_DIR/lib/*" kc
|
||||
${HOST}strip "$DEB_DIR/lib/*" kc
|
||||
#tar -zcf "$DEB_FILE" "$DEB_DIR"
|
||||
cd "$DEB_DIR"
|
||||
mv debian/Makefile .
|
||||
|
|
Loading…
Reference in New Issue
Block a user