hi all,
i have been working on a generic slakcbuild script recently and was wondering about a piece of code i am not sure is working correctly.
Code:
grep DESTDIR Makefile*
if [ $? = /dev/null ]; then
make prefix=$PKG/usr install || exit 1
else
make install DESTDIR=$PKG || exit 1
fi
would this work for determining if the makefile has a DESTDIR variable?
also, is there any way i can have it look at both "makefile" and "Makefile" in case one is lower case and another is upper? (two different programs but i have already seen it between "configure" and "Configure")
Thanks!