make: preliminary `collect' target

This commit is contained in:
Franco Fichtner 2018-02-28 19:17:52 +00:00
parent 49fbd936d8
commit f651d13359
2 changed files with 13 additions and 0 deletions

View File

@ -214,6 +214,14 @@ install:
CORE_PACKAGESITE=${CORE_PACKAGESITE} \
CORE_REPOSITORY=${CORE_REPOSITORY}
collect:
@(cd ${.CURDIR}/src; find * -type f) | while read FILE; do \
if [ -f ${DESTDIR}${LOCALBASE}/$${FILE} ]; then \
tar -C ${DESTDIR}${LOCALBASE} -cpf - $${FILE} | \
tar -C ${.CURDIR}/src -xpf -; \
fi; \
done
bootstrap:
@${MAKE} -C ${.CURDIR}/src install-bootstrap DESTDIR=${DESTDIR} \
NO_SAMPLE=please CORE_PACKAGESITE=${CORE_PACKAGESITE} \

View File

@ -83,6 +83,11 @@ make upgrade
Upgrade will run the package build and replace the currently installed
package in the system.
make collect
------------
Fetch changes from the running system for all known files.
make lint
---------