pkgsrc-wip/gcc-3.4/preconfigure.mk

11 lines
446 B
Makefile
Raw Normal View History

2004-06-05 21:56:36 +02:00
# Create compiler driver scripts in ${WRKDIR}.
(test -d ${WRKDIR}/.gcc/bin || ${MKDIR} ${WRKDIR}/.gcc/bin)
(cd ${BUILDLINK_PREFIX.gcc34}/bin && bin_files=`ls *` && \
2004-06-05 21:56:36 +02:00
cd ${WRKDIR}/.gcc/bin && \
for _target_ in $${bin_files} ; do \
${ECHO} '#!${TOOLS_SHELL}' > $${_target_} && \
${ECHO} -n "exec ${BUILDLINK_PREFIX.gcc34}/bin/$${_target_}" >> $${_target_} && \
2004-06-05 21:56:36 +02:00
${ECHO} ' "$$@"' >> $${_target_} && \
${CHMOD} +x $${_target_}; \
done )