Makefile.inc1 (148389) | Makefile.inc1 (148543) |
---|---|
1# | 1# |
2# $FreeBSD: head/Makefile.inc1 148389 2005-07-25 14:44:11Z des $ | 2# $FreeBSD: head/Makefile.inc1 148543 2005-07-29 21:45:46Z netchild $ |
3# 4# Make command line options: 5# -DNO_DYNAMICROOT do not link /bin and /sbin dynamically 6# -DNO_KERBEROS Do not build Heimdal (Kerberos 5) 7# -DNO_RESCUE do not build rescue binaries 8# -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 9# -DNO_CLEAN do not clean at all 10# -DNO_CRYPT will prevent building of crypt versions --- 1051 unchanged lines hidden (view full) --- 1062information regarding how to cope with the removal/revision bump of a \ 1063specific library." 1064 1065.if !defined(BATCH_DELETE_OLD_FILES) 1066RM_I=-i 1067.endif 1068 1069delete-old-files: | 3# 4# Make command line options: 5# -DNO_DYNAMICROOT do not link /bin and /sbin dynamically 6# -DNO_KERBEROS Do not build Heimdal (Kerberos 5) 7# -DNO_RESCUE do not build rescue binaries 8# -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 9# -DNO_CLEAN do not clean at all 10# -DNO_CRYPT will prevent building of crypt versions --- 1051 unchanged lines hidden (view full) --- 1062information regarding how to cope with the removal/revision bump of a \ 1063specific library." 1064 1065.if !defined(BATCH_DELETE_OLD_FILES) 1066RM_I=-i 1067.endif 1068 1069delete-old-files: |
1070.if defined(${TARGET_ARCH}) | 1070.if ${TARGET_ARCH} != ${MACHINE_ARCH} |
1071.error "You have to run this in a native environment!" 1072.endif 1073 @echo ">>> Removing old files (only deletes safe to delete libs)" 1074.for file in ${OLD_FILES} 1075# Ask for every old file if the user really wants to remove it. 1076# It's anoying, but beter safe than sorry. 1077 @[ ! -f "${DESTDIR}/${file}" ] || (rm ${RM_I} "${DESTDIR}/${file}" \ 1078 || ([ -f "${DESTDIR}/${file}" ] \ 1079 && echo "Removing schg flag on ${DESTDIR}/${file}" \ 1080 && chflags noschg "${DESTDIR}/${file}" \ 1081 && rm ${RM_I} "${DESTDIR}/${file}")) 1082.endfor 1083 @echo ">>> Old files removed" 1084 1085check-old-files: | 1071.error "You have to run this in a native environment!" 1072.endif 1073 @echo ">>> Removing old files (only deletes safe to delete libs)" 1074.for file in ${OLD_FILES} 1075# Ask for every old file if the user really wants to remove it. 1076# It's anoying, but beter safe than sorry. 1077 @[ ! -f "${DESTDIR}/${file}" ] || (rm ${RM_I} "${DESTDIR}/${file}" \ 1078 || ([ -f "${DESTDIR}/${file}" ] \ 1079 && echo "Removing schg flag on ${DESTDIR}/${file}" \ 1080 && chflags noschg "${DESTDIR}/${file}" \ 1081 && rm ${RM_I} "${DESTDIR}/${file}")) 1082.endfor 1083 @echo ">>> Old files removed" 1084 1085check-old-files: |
1086.if defined(${TARGET_ARCH}) | 1086.if ${TARGET_ARCH} != ${MACHINE_ARCH} |
1087.error "You have to run this in a native environment!" 1088.endif 1089 @echo ">>> Checking for old files" 1090.for file in ${OLD_FILES} 1091 @[ ! -f "${DESTDIR}/${file}" ] || echo "${DESTDIR}/${file}" 1092.endfor 1093 1094delete-old-libs: | 1087.error "You have to run this in a native environment!" 1088.endif 1089 @echo ">>> Checking for old files" 1090.for file in ${OLD_FILES} 1091 @[ ! -f "${DESTDIR}/${file}" ] || echo "${DESTDIR}/${file}" 1092.endfor 1093 1094delete-old-libs: |
1095.if defined(${TARGET_ARCH}) | 1095.if ${TARGET_ARCH} != ${MACHINE_ARCH} |
1096.error "You have to run this in a native environment!" 1097.endif 1098 @echo ">>> Removing old libraries" 1099 @echo "${OLD_LIBS_MESSAGE}" | fmt 1100.for file in ${OLD_LIBS} 1101 @[ ! -f "${DESTDIR}/${file}" ] || (rm ${RM_I} "${DESTDIR}/${file}" \ 1102 || ([ -f "${DESTDIR}/${file}" ] \ 1103 && echo "Removing schg flag on ${DESTDIR}/${file}" \ 1104 && chflags noschg "${DESTDIR}/${file}" \ 1105 && rm ${RM_I} "${DESTDIR}/${file}")) 1106.endfor 1107 @echo ">>> Old libraries removed" 1108 1109check-old-libs: | 1096.error "You have to run this in a native environment!" 1097.endif 1098 @echo ">>> Removing old libraries" 1099 @echo "${OLD_LIBS_MESSAGE}" | fmt 1100.for file in ${OLD_LIBS} 1101 @[ ! -f "${DESTDIR}/${file}" ] || (rm ${RM_I} "${DESTDIR}/${file}" \ 1102 || ([ -f "${DESTDIR}/${file}" ] \ 1103 && echo "Removing schg flag on ${DESTDIR}/${file}" \ 1104 && chflags noschg "${DESTDIR}/${file}" \ 1105 && rm ${RM_I} "${DESTDIR}/${file}")) 1106.endfor 1107 @echo ">>> Old libraries removed" 1108 1109check-old-libs: |
1110.if defined(${TARGET_ARCH}) | 1110.if ${TARGET_ARCH} != ${MACHINE_ARCH} |
1111.error "You have to run this in a native environment!" 1112.endif 1113 @echo ">>> Checking for old libraries" 1114.for file in ${OLD_LIBS} 1115 @[ ! -f "${DESTDIR}/${file}" ] || echo "${DESTDIR}/${file}" 1116.endfor 1117 1118delete-old-dirs: | 1111.error "You have to run this in a native environment!" 1112.endif 1113 @echo ">>> Checking for old libraries" 1114.for file in ${OLD_LIBS} 1115 @[ ! -f "${DESTDIR}/${file}" ] || echo "${DESTDIR}/${file}" 1116.endfor 1117 1118delete-old-dirs: |
1119.if defined(${TARGET_ARCH}) | 1119.if ${TARGET_ARCH} != ${MACHINE_ARCH} |
1120.error "You have to run this in a native environment!" 1121.endif 1122 @echo ">>> Removing old directories" 1123.for dir in ${OLD_DIRS} 1124# Don't fail if an old directory isn't empty. 1125 @[ ! -d "${DESTDIR}/${dir}" ] || (rmdir -v "${DESTDIR}/${dir}" || true) 1126.endfor 1127 @echo ">>> Old directories removed" 1128 1129check-old-dirs: | 1120.error "You have to run this in a native environment!" 1121.endif 1122 @echo ">>> Removing old directories" 1123.for dir in ${OLD_DIRS} 1124# Don't fail if an old directory isn't empty. 1125 @[ ! -d "${DESTDIR}/${dir}" ] || (rmdir -v "${DESTDIR}/${dir}" || true) 1126.endfor 1127 @echo ">>> Old directories removed" 1128 1129check-old-dirs: |
1130.if defined(${TARGET_ARCH}) | 1130.if ${TARGET_ARCH} != ${MACHINE_ARCH} |
1131.error "You have to run this in a native environment!" 1132.endif 1133 @echo ">>> Checking for old directories" 1134.for dir in ${OLD_DIRS} 1135 @[ ! -d "${DESTDIR}/${dir}" ] || echo "${DESTDIR}/${dir}" 1136.endfor 1137 1138delete-old: delete-old-files delete-old-dirs 1139 @echo "To remove old libraries run '${MAKE} delete-old-libs'." 1140 1141check-old: check-old-files check-old-libs check-old-dirs 1142 @echo "To remove old files and directories run '${MAKE} delete-old'." 1143 @echo "To remove old libraries run '${MAKE} delete-old-libs'." 1144 | 1131.error "You have to run this in a native environment!" 1132.endif 1133 @echo ">>> Checking for old directories" 1134.for dir in ${OLD_DIRS} 1135 @[ ! -d "${DESTDIR}/${dir}" ] || echo "${DESTDIR}/${dir}" 1136.endfor 1137 1138delete-old: delete-old-files delete-old-dirs 1139 @echo "To remove old libraries run '${MAKE} delete-old-libs'." 1140 1141check-old: check-old-files check-old-libs check-old-dirs 1142 @echo "To remove old files and directories run '${MAKE} delete-old'." 1143 @echo "To remove old libraries run '${MAKE} delete-old-libs'." 1144 |