8 HEADER_LOC
="${DESTDIR}$PREFIX/$INCLUDEDIR"
9 LIB_LOC
="${DESTDIR}$PREFIX/$LIBDIR"
10 BIN_LOC
="${DESTDIR}$PREFIX/$BINDIR"
13 echo "INSTALL headers ($HEADER_LOC)"
14 install -m 775 -d "${HEADER_LOC}/GP"
15 for i
in `ls include/`; do
16 if [ -d "include/$i" ]; then
18 install -m 775 -d "${HEADER_LOC}/GP/$i"
19 install -m 664 "include/$i/"*.h
"${HEADER_LOC}/GP/$i"
21 if [ "$i" != "Makefile" ]; then
22 install -m 664 "include/$i" "${HEADER_LOC}/GP/$i"
28 echo "INSTALL libraries ($LIB_LOC)"
29 install -m 775 -d "$LIB_LOC"
31 for i
in build
/*.so build
/*.so.
* build
/*.a
; do
33 TARGET
=`basename "$i"`
34 SOURCE
=`readlink "$i"`
35 (cd "$LIB_LOC" && rm -f "$TARGET" && ln -s "$SOURCE" "$TARGET")
37 install "$i" "$LIB_LOC"
42 echo "INSTALL binaries"
43 install -m 775 -d "$BIN_LOC"
44 install -m 755 gfxprim-config
"$BIN_LOC"