Index: Makefile =================================================================== --- Makefile (revision 37036) +++ Makefile (revision 37037) @@ -3,7 +3,7 @@ all: keys.html user/05_ui/04_common/keytree.svg user/05_ui/04_common/keytree.txt ROOT="" ./Autostyle.sh *.html - ./datasheet.sh + LIBRND_LIBDIR="$(LIBRND_LIBDIR)" ./datasheet.sh include ../Makefile.conf include $(LIBRND_MAK) Index: datasheet.sh =================================================================== --- datasheet.sh (revision 37036) +++ datasheet.sh (revision 37037) @@ -2,7 +2,11 @@ ROOT=.. -LIBRND_LIBDIR=`cd developer/packaging && make -f librnd_root.mk libdir` +if test -z "$LIBRND_LIBDIR" +then + # when not run from the Makefile + LIBRND_LIBDIR=`cd developer/packaging && make -f librnd_root.mk libdir` +fi proot=$ROOT/src_plugins . $LIBRND_LIBDIR/devhelpers/awk_on_formats.sh