| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.pkg.update.mk,v 1.21 2010/06/15 04:14:26 dholland Exp $ | | 1 | # $NetBSD: bsd.pkg.update.mk,v 1.22 2010/07/03 04:24:14 darcy Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment is included by bsd.pkg.mk and contains the targets | | 3 | # This Makefile fragment is included by bsd.pkg.mk and contains the targets |
4 | # and variables for "make update". | | 4 | # and variables for "make update". |
5 | # | | 5 | # |
6 | # There is no documentation on what "update" actually does. This is merely | | 6 | # There is no documentation on what "update" actually does. This is merely |
7 | # an attempt to separate the magic into a separate module that can be | | 7 | # an attempt to separate the magic into a separate module that can be |
8 | # reimplemented later. | | 8 | # reimplemented later. |
9 | # | | 9 | # |
10 | | | 10 | |
11 | NOCLEAN?= NO # don't clean up after update | | 11 | NOCLEAN?= NO # don't clean up after update |
12 | REINSTALL?= NO # reinstall upon update | | 12 | REINSTALL?= NO # reinstall upon update |
13 | | | 13 | |
14 | # UPDATE_TARGET is the target that is invoked when updating packages during | | 14 | # UPDATE_TARGET is the target that is invoked when updating packages during |
| @@ -99,27 +99,27 @@ clean-update: | | | @@ -99,27 +99,27 @@ clean-update: |
99 | ${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} clean | | 99 | ${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} clean |
100 | .else | | 100 | .else |
101 | ${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} clean update-dirlist DIRLIST="`${CAT} ${_DDIR}`" PKGLIST="`${CAT} ${_DLIST}`" | | 101 | ${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} clean update-dirlist DIRLIST="`${CAT} ${_DDIR}`" PKGLIST="`${CAT} ${_DLIST}`" |
102 | @${WARNING_MSG} "preserved leftover directory list. Your next" | | 102 | @${WARNING_MSG} "preserved leftover directory list. Your next" |
103 | @${WARNING_MSG} "\`\`${MAKE} update'' may fail. It is advised to use" | | 103 | @${WARNING_MSG} "\`\`${MAKE} update'' may fail. It is advised to use" |
104 | @${WARNING_MSG} "\`\`${MAKE} update REINSTALL=YES'' instead!" | | 104 | @${WARNING_MSG} "\`\`${MAKE} update REINSTALL=YES'' instead!" |
105 | .endif | | 105 | .endif |
106 | | | 106 | |
107 | .endif # !target(update) | | 107 | .endif # !target(update) |
108 | | | 108 | |
109 | | | 109 | |
110 | .PHONY: update-dirlist | | 110 | .PHONY: update-dirlist |
111 | update-dirlist: | | 111 | update-dirlist: |
112 | ${RUN} ${MKDIR} -p ${WRKDIR} | | 112 | ${RUN} ${MKDIR} ${WRKDIR} |
113 | .if defined(PKGLIST) | | 113 | .if defined(PKGLIST) |
114 | . for __tmp__ in ${PKGLIST} | | 114 | . for __tmp__ in ${PKGLIST} |
115 | ${RUN} ${ECHO} >>${_DLIST} "${__tmp__}" | | 115 | ${RUN} ${ECHO} >>${_DLIST} "${__tmp__}" |
116 | . endfor | | 116 | . endfor |
117 | .endif | | 117 | .endif |
118 | .if defined(DIRLIST) | | 118 | .if defined(DIRLIST) |
119 | . for __tmp__ in ${DIRLIST} | | 119 | . for __tmp__ in ${DIRLIST} |
120 | ${RUN} ${ECHO} >>${_DDIR} "${__tmp__}" | | 120 | ${RUN} ${ECHO} >>${_DDIR} "${__tmp__}" |
121 | . endfor | | 121 | . endfor |
122 | .endif | | 122 | .endif |
123 | | | 123 | |
124 | | | 124 | |
125 | ${_DDIR}: ${_DLIST} | | 125 | ${_DDIR}: ${_DLIST} |