#!/bin/sh -e . package/info echo '#' echo '# This file has been generated by tools/gen-targets.sh' echo '#' echo if test -d src/bin then cd src/bin echo "ALL_BINS ::= \\" for FILE in $(find * -type f 2> /dev/null) ; do echo "\t${FILE} \\" done echo echo "INSTALL_BINS ::= \\" for FILE in $(find * -type f 2> /dev/null) ; do echo "\t\$(DESTDIR)\$(bindir)/${FILE} \\" done echo echo "SLASHCOMMAND_BINS ::= \\" for FILE in $(find * -type f 2> /dev/null) ; do echo "\t\$(DESTDIR)\$(sproot)/command/${FILE} \\" done cd ../.. echo fi if test -d src/lib then cd src/lib echo "ALL_LIBS ::= \\" for FILE in $(find * -type f 2> /dev/null) ; do echo "\t${FILE} \\" done echo echo "INSTALL_LIBS ::= \\" for FILE in $(find * -type f 2> /dev/null) ; do echo "\t\$(DESTDIR)\$(libdir)/${FILE} \\" done cd ../.. echo fi