meta.autodep.mk (bmake-20201101) | : | meta.autodep.mk (bmake-20201117) | ||
---|---|---|---|---|
# $Id: meta.autodep.mk,v 1.52 2020/07/18 05:57:57 sjg Exp $ | # $Id: meta.autodep.mk,v 1.53 2020/11/08 05:47:56 sjg Exp $ | |||
# | # | |||
# @(#) Copyright (c) 2010, Simon J. Gerraty | # @(#) Copyright (c) 2010, Simon J. Gerraty | |||
# | # | |||
# This file is provided in the hope that it will | # This file is provided in the hope that it will | |||
# be of use. There is absolutely NO WARRANTY. | # be of use. There is absolutely NO WARRANTY. | |||
# Permission to copy, redistribute or otherwise | # Permission to copy, redistribute or otherwise | |||
# use this file is hereby granted provided that | # use this file is hereby granted provided that | |||
# the above copyright notice and this notice are | # the above copyright notice and this notice are | |||
# left intact. | # left intact. | |||
skipping to change at line 181 | skipping to change at line 181 | |||
-e 's,^\([^/][^/]*\).meta...[0-9]* ,\1: ,' | \ | -e 's,^\([^/][^/]*\).meta...[0-9]* ,\1: ,' | \ | |||
sort -u | \ | sort -u | \ | |||
while read t d; do \ | while read t d; do \ | |||
case "$$d:" in $$t) continue;; esac; \ | case "$$d:" in $$t) continue;; esac; \ | |||
case "$$t$$d" in ${SUPPRESS_DEPEND:U.:O:u:ts|}) continue;; esac; \ | case "$$t$$d" in ${SUPPRESS_DEPEND:U.:O:u:ts|}) continue;; esac; \ | |||
echo $$t $$d; \ | echo $$t $$d; \ | |||
done > $@.${.MAKE.PID} | done > $@.${.MAKE.PID} | |||
@case "${.MAKE.META.FILES:T:M*.po.*}" in \ | @case "${.MAKE.META.FILES:T:M*.po.*}" in \ | |||
*.po.*) mv $@.${.MAKE.PID} $@;; \ | *.po.*) mv $@.${.MAKE.PID} $@;; \ | |||
*) { cat $@.${.MAKE.PID}; \ | *) { cat $@.${.MAKE.PID}; \ | |||
sed 's,\${PICO}:,.o:,;s,\.o:,.po:,' $@.${.MAKE.PID}; } | sort -u > $@; \ | sed ${OBJ_EXTENSIONS:N.o:N.po:@o@-e 's,\$o:,.o:,'@} \ | |||
-e 's,\.o:,.po:,' $@.${.MAKE.PID}; } | sort -u > $@; \ | ||||
rm -f $@.${.MAKE.PID};; \ | rm -f $@.${.MAKE.PID};; \ | |||
esac | esac | |||
.else | .else | |||
# make sure this exists | # make sure this exists | |||
.depend: | .depend: | |||
# do _not_ assume that .depend is in any fit state for us to use | # do _not_ assume that .depend is in any fit state for us to use | |||
CAT_DEPEND = /dev/null | CAT_DEPEND = /dev/null | |||
.if ${.MAKE.LEVEL} > 0 | .if ${.MAKE.LEVEL} > 0 | |||
.export CAT_DEPEND | .export CAT_DEPEND | |||
.endif | .endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added |