PKGS=$(HOME)/local/ucm-packages

install: $(PKGS)
	while read P; do D=$${P}_all.deb; if [ ! -e $$D -o $$P -nt $$D ]; then ./ucmpkg.1 $$P; fi; done <$<
$(PKGS):
	lecho 'ucm-core' 'ucm-common'>>"$@"
all: $(shell cat $(PKGS))
	cat $(shell cat $(PKGS)) | perl -ne 's/#.*//; s/\s*\z//; s/\s+/\n/g; /\S/ and print "$$_\n";' | uniqo > all
