aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 36ff3a82826e7e0c5de61954cf09e62eb3b65987 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
update:
	@for PKG in *; do \
		if test -d "$${PKG}"; then \
			if pacman -Qq -- $${PKG} </dev/null >/dev/null 2>/dev/null ; then \
				printf -- '\033[1mmake -C %s install\033[m\n' "$${PKG}"; \
				make -C "$${PKG}" install; \
			else\
				printf -- '\033[1mmake -C %s uninstall\033[m\n' "$${PKG}"; \
				make -C "$${PKG}" uninstall; \
			fi; \
		fi; \
	done

.PHONY: update