41a56bdd8a
1) Test and mkdir if necessary to correct problem reported by Matthias Drochner: "For me (using ALT_GCC), the directory .work/.gcc was not present at pre-configure time, which made some "cd" fail." 2) Makefile and pkglint cleanup as recommended by Lubomir Sedlacik
10 lines
485 B
Makefile
10 lines
485 B
Makefile
# Create compiler driver scripts in ${WRKDIR}.
|
|
(test -d ${WRKDIR}/.gcc/bin || ${MKDIR} ${WRKDIR}/.gcc/bin)
|
|
(cd ${BUILDLINK_PREFIX.gcc34-ada}/bin && bin_files=`${FIND} . -type f \( -perm -0100 \)` && \
|
|
cd ${WRKDIR}/.gcc/bin && \
|
|
for _target_ in $${bin_files} ; do \
|
|
${ECHO} '#!${TOOLS_SHELL}' > $${_target_} && \
|
|
${ECHO} -n "exec ${BUILDLINK_PREFIX.gcc34-ada}/bin/$${_target_}" >> $${_target_} && \
|
|
${ECHO} ' "$$@"' >> $${_target_} && \
|
|
${CHMOD} +x $${_target_}; \
|
|
done )
|