blob: d8e10bb0f947b08cef5da0736a327f7ac459cf35 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
.POSIX:
CHECK_INSTALLED = pacman -Qq -- </dev/null >/dev/null
update:
@for PKG in *; do \
if test -d "$${PKG}"; then \
if $(CHECK_INSTALLED) $${PKG} 2>/dev/null ; then \
printf -- '\033[1mmake -C %s install\033[m\n' "$${PKG}"; \
make -C "$${PKG}" CHECK_INSTALLED="$(CHECK_INSTALLED)" install; \
else\
printf -- '\033[1mmake -C %s uninstall\033[m\n' "$${PKG}"; \
make -C "$${PKG}" CHECK_INSTALLED="$(CHECK_INSTALLED)" uninstall; \
fi; \
fi; \
done
.PHONY: update
|