.POSIX: update: +@for PKG in *; do \ if test -d "$${PKG}"; then \ if ./check-installed "$${PKG}" 2>/dev/null; then \ if ! ./check-installed "$$(readlink -- "$${PKG}")" 2>/dev/null; then \ printf -- '\033[1mcd %s && %s install\033[m\n' "$${PKG}" '$(MAKE)'; \ (cd -- "$${PKG}" && $(MAKE) install); \ fi; \ else\ printf -- '\033[1mcd %s && %s uninstall\033[m\n' "$${PKG}" '$(MAKE)'; \ (cd -- "$${PKG}" && $(MAKE) uninstall || :); \ fi; \ fi; \ done +if test -f .private/pkgs/Makefile || test -f .private/pkgs/makefile; then \ cd -- .private/pkgs && $(MAKE); \ fi +if test -f .work/pkgs/Makefile || test -f .work/pkgs/makefile; then \ cd -- .work/pkgs && $(MAKE); \ fi