Deleted Added
full compact
Makefile.inc1 (148051) Makefile.inc1 (148330)
1#
1#
2# $FreeBSD: head/Makefile.inc1 148051 2005-07-15 14:38:54Z ru $
2# $FreeBSD: head/Makefile.inc1 148330 2005-07-23 14:23:30Z 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

--- 1042 unchanged lines hidden (view full) ---

1053 cd ${.CURDIR}/$${edir}; \
1054 fi; \
1055 ${MAKE} ${__target} DIRPRFX=${DIRPRFX}$${edir}/
1056.endfor
1057par-${__target}: ${SUBDIR:S/$/.${__target}__D/}
1058.endfor
1059
1060.include <bsd.subdir.mk>
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

--- 1042 unchanged lines hidden (view full) ---

1053 cd ${.CURDIR}/$${edir}; \
1054 fi; \
1055 ${MAKE} ${__target} DIRPRFX=${DIRPRFX}$${edir}/
1056.endfor
1057par-${__target}: ${SUBDIR:S/$/.${__target}__D/}
1058.endfor
1059
1060.include <bsd.subdir.mk>
1061
1062#
1063# check for / delete old files section
1064#
1065
1066.include "ObsoleteFiles.inc"
1067
1068OLD_LIBS_MESSAGE="Please be sure no application still uses those libraries, \
1069else you can not start such an application. Consult UPDATING for more \
1070information regarding how to cope with the removal/revision bump of a \
1071specific library."
1072
1073.if !defined(BATCH_DELETE_OLD_FILES)
1074RM_I=-i
1075.endif
1076
1077delete-old-files:
1078.if defined(${TARGET_ARCH})
1079.error "You have to run this in a native environment!"
1080.endif
1081 @echo ">>> Removing old files (only deletes safe to delete libs)"
1082.for file in ${OLD_FILES}
1083# Ask for every old file if the user really wants to remove it.
1084# It's anoying, but beter safe than sorry.
1085 @[ ! -f "${DESTDIR}/${file}" ] || (rm ${RM_I} "${DESTDIR}/${file}" \
1086 || ([ -f "${DESTDIR}/${file}" ] \
1087 && echo "Removing schg flag on ${DESTDIR}/${file}" \
1088 && chflags noschg "${DESTDIR}/${file}" \
1089 && rm ${RM_I} "${DESTDIR}/${file}"))
1090.endfor
1091 @echo ">>> Old files removed"
1092
1093check-old-files:
1094.if defined(${TARGET_ARCH})
1095.error "You have to run this in a native environment!"
1096.endif
1097 @echo ">>> Checking for old files"
1098.for file in ${OLD_FILES}
1099 @[ ! -f "${DESTDIR}/${file}" ] || echo "${DESTDIR}/${file}"
1100.endfor
1101
1102delete-old-libs:
1103.if defined(${TARGET_ARCH})
1104.error "You have to run this in a native environment!"
1105.endif
1106 @echo ">>> Removing old libraries"
1107 @echo "${OLD_LIBS_MESSAGE}" | fmt
1108.for file in ${OLD_LIBS}
1109 @[ ! -f "${DESTDIR}/${file}" ] || (rm ${RM_I} "${DESTDIR}/${file}" \
1110 || ([ -f "${DESTDIR}/${file}" ] \
1111 && echo "Removing schg flag on ${DESTDIR}/${file}" \
1112 && chflags noschg "${DESTDIR}/${file}" \
1113 && rm ${RM_I} "${DESTDIR}/${file}"))
1114.endfor
1115 @echo ">>> Old libraries removed"
1116
1117check-old-libs:
1118.if defined(${TARGET_ARCH})
1119.error "You have to run this in a native environment!"
1120.endif
1121 @echo ">>> Checking for old libraries"
1122.for file in ${OLD_LIBS}
1123 @[ ! -f "${DESTDIR}/${file}" ] || echo "${DESTDIR}/${file}"
1124.endfor
1125
1126delete-old-dirs:
1127.if defined(${TARGET_ARCH})
1128.error "You have to run this in a native environment!"
1129.endif
1130 @echo ">>> Removing old directories"
1131.for dir in ${OLD_DIRS}
1132# Don't fail if an old directory isn't empty.
1133 @[ ! -d "${DESTDIR}/${dir}" ] || (rmdir -v "${DESTDIR}/${dir}" || true)
1134.endfor
1135 @echo ">>> Old directories removed"
1136
1137check-old-dirs:
1138.if defined(${TARGET_ARCH})
1139.error "You have to run this in a native environment!"
1140.endif
1141 @echo ">>> Checking for old directories"
1142.for dir in ${OLD_DIRS}
1143 @[ ! -d "${DESTDIR}/${dir}" ] || echo "${DESTDIR}/${dir}"
1144.endfor
1145
1146delete-old: delete-old-files delete-old-dirs
1147 @echo "To remove old libraries run '${MAKE} delete-old-libs'."
1148
1149check-old: check-old-files check-old-libs check-old-dirs
1150 @echo "To remove old files and directories run '${MAKE} delete-old'."
1151 @echo "To remove old libraries run '${MAKE} delete-old-libs'."
1152