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
|
LDFLAGS+=-L./lib/freechart/lib -lwxcode_gtk2u_freechart-2.8
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CXX=$(PREFIX)g++
|
CXX=$(HOST)g++
|
||||||
|
|
||||||
SOURCES=$(shell find src -name '*.cpp' -type f | tr '\n' ' ')
|
SOURCES=$(shell find src -name '*.cpp' -type f | tr '\n' ' ')
|
||||||
HEADERS=$(shell find src -name '*.h' -type f)
|
HEADERS=$(shell find src -name '*.h' -type f)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DATE=`date +%d.%m.%Y`
|
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`
|
VERSION=`cat src/controller/KissCount.h | grep APP_VERSION | cut -d\" -f2`
|
||||||
DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}"
|
DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}"
|
||||||
FILE="$DIR.tar.bz2"
|
FILE="$DIR.tar.bz2"
|
||||||
|
@ -21,7 +21,7 @@ make || (echo "Compilation failed" ; exit 1)
|
||||||
mkdir -p "$DIR"/lib
|
mkdir -p "$DIR"/lib
|
||||||
cp -r lib/freechart/lib/*.so* lib/wxsqlite3-1.9.9/lib/*.so* "$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"
|
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"
|
tar -jcf "$FILE" "$DIR"
|
||||||
rm -rf "$DIR"
|
rm -rf "$DIR"
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ rm -rf "$DEB_DIR" "$DEB_FILE"
|
||||||
mkdir -p "$DEB_DIR/lib"
|
mkdir -p "$DEB_DIR/lib"
|
||||||
cp -r lib/freechart/lib/*.so* lib/wxsqlite3-1.9.9/lib/*.so* "$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"
|
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"
|
#tar -zcf "$DEB_FILE" "$DEB_DIR"
|
||||||
cd "$DEB_DIR"
|
cd "$DEB_DIR"
|
||||||
mv debian/Makefile .
|
mv debian/Makefile .
|
||||||
|
|
Loading…
Reference in New Issue
Block a user