-$(WEBDIR)/list.html: web/staticall.php tools/doc_extract $(DIRECT_TARBALLS) $(DEPEND_TARBALLS) $(WEBDIR)/ccan.tar.bz2 $(JUNKBALLS)
- php5 web/staticall.php ccan/ junkcode/ $(WEBDIR) > $@
-
-$(WEBDIR)/upload.html: web/staticupload.php
- php5 web/staticupload.php > $@
-
-# cpp inserts gratuitous linebreaks at start of file, makes for php problems.
-$(WEBDIR)/uploader.php: web/uploader.php.cpp
- cpp -w -C -P $< | grep . > $@
-
-$(WEBDIR)/index.html: web/staticindex.php
- php5 web/staticindex.php > $@
-
-$(WEBDIR)/example-config.h: config.h
- cp $< $@
-
-$(WEBDIR)/Makefile-ccan: Makefile-ccan
- cp $< $@
-
-$(WEBDIR)/ccan.jpg: web/ccan.jpg
- cp $< $@
-
-$(WEBDIR)/info/%.html: ccan/% ccan/%/test $(WEBDIR)/tarballs/%.tar.bz2 $(WEBDIR)/tarballs/with-deps/%.tar.bz2
- URLPREFIX=../ php5 web/staticmoduleinfo.php ccan/$* > $@
+$(ALL_DEPENDS): %/.depends: %/_info tools/ccan_depends
+ tools/ccan_depends $* > $@ || ( rm -f $@; exit 1 )