Changeset View
Changeset View
Standalone View
Standalone View
Makefile
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
.include <bsd.port.subdir.mk> | .include <bsd.port.subdir.mk> | ||||
index: | index: | ||||
@rm -f ${INDEXDIR}/${INDEXFILE} | @rm -f ${INDEXDIR}/${INDEXFILE} | ||||
@cd ${.CURDIR} && ${MAKE} ${INDEXDIR}/${INDEXFILE} | @cd ${.CURDIR} && ${MAKE} ${INDEXDIR}/${INDEXFILE} | ||||
fetchindex: ${INDEXDIR}/${INDEXFILE}.bz2 | fetchindex: ${INDEXDIR}/${INDEXFILE}.bz2 | ||||
@bunzip2 < ${INDEXDIR}/${INDEXFILE}.bz2 > ${INDEXDIR}/${INDEXFILE} && \ | @rm -f ${INDEXDIR}/${INDEXFILE} | ||||
chmod a+r ${INDEXDIR}/${INDEXFILE} && ${RM} ${INDEXDIR}/${INDEXFILE}.bz2 | @bzip2 -k -d ${INDEXDIR}/${INDEXFILE}.bz2 | ||||
@chmod a+r ${INDEXDIR}/${INDEXFILE} | |||||
${INDEXDIR}/${INDEXFILE}.bz2: .PHONY | ${INDEXDIR}/${INDEXFILE}.bz2: .PHONY | ||||
@echo "Fetch ${INDEXFILE}.bz2 from ${MASTER_SITE_INDEX}${INDEXFILE}.bz2" | |||||
bapt: why not just saying fetch ${MASTER_SITE_INDEX}/... instead of nameing the file and repeating… | |||||
@${FETCHINDEX} ${INDEXDIR}/${INDEXFILE}.bz2 ${MASTER_SITE_INDEX}${INDEXFILE}.bz2 | @${FETCHINDEX} ${INDEXDIR}/${INDEXFILE}.bz2 ${MASTER_SITE_INDEX}${INDEXFILE}.bz2 | ||||
MASTER_SITE_INDEX?= http://www.FreeBSD.org/ports/ | MASTER_SITE_INDEX?= http://www.FreeBSD.org/ports/ | ||||
SETENV?= /usr/bin/env | SETENV?= /usr/bin/env | ||||
FETCHINDEX?= ${SETENV} ${FETCH_ENV} fetch -am -o | FETCHINDEX?= ${SETENV} ${FETCH_ENV} fetch -am -o | ||||
.if !defined(INDEX_JOBS) | .if !defined(INDEX_JOBS) | ||||
INDEX_JOBS!= ${SYSCTL} -n kern.smp.cpus | INDEX_JOBS!= ${SYSCTL} -n kern.smp.cpus | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |
why not just saying fetch ${MASTER_SITE_INDEX}/... instead of nameing the file and repeating again?