DIRS=$(wildcard *-*)
index.html: $(DIRS:%=%/index.html)
	archivedir
%/index.html: $(wildcard %/*.jpg)
	cd $*;imagedir
