aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 1c80c03f632a9da524fe30aed6fbe8310a3f524a (plain) (tree)
1
2
3
4
5
6
7
8
9
10

       
       
                            
                                            




                                                                                                             
                             

                                                                                                       


                             





                                                                                    
.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