X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=Makefile-web;h=1d63d1bdca0ed65c2ac3548f9cc692a7936c3efe;hp=e6be54f4e0e50a123be4170171158bf3a8db4b7c;hb=5282308f19084f52e55c6c7cb12586d9e3c53532;hpb=f0686bf0280028f5fd4829cc2d62d3e1d7be087e diff --git a/Makefile-web b/Makefile-web index e6be54f4..1d63d1bd 100644 --- a/Makefile-web +++ b/Makefile-web @@ -1,16 +1,18 @@ # This can be overridden on cmdline to generate pages elsewhere. -WEBDIR=~/www/html/ccan +WEBDIR=/home/rusty/www/html/ccan -ALL_PAGES=$(patsubst %, $(WEBDIR)/info/%.html, $(ALL)) -DIRECT_TARBALLS=$(patsubst %, $(WEBDIR)/tarballs/%.tar.bz2, $(ALL)) -DEPEND_TARBALLS=$(patsubst %, $(WEBDIR)/tarballs/with-deps/%.tar.bz2, $(ALL)) +# Ignore EXCLUDE when making webpages. +REALLY_ALL=$(patsubst ccan/%/_info, %, $(shell bzr ls -R ccan | grep '/_info$$')) +ALL_PAGES=$(patsubst %, $(WEBDIR)/info/%.html, $(REALLY_ALL)) +DIRECT_TARBALLS=$(patsubst %, $(WEBDIR)/tarballs/%.tar.bz2, $(REALLY_ALL)) +DEPEND_TARBALLS=$(patsubst %, $(WEBDIR)/tarballs/with-deps/%.tar.bz2, $(REALLY_ALL)) WEB_SUBDIRS=$(WEBDIR)/tarballs $(WEBDIR)/junkcode $(WEBDIR)/tarballs/with-deps $(WEBDIR)/info JUNKDIRS=$(wildcard junkcode/*) JUNKPAGES=$(JUNKDIRS:%=$(WEBDIR)/%.html) JUNKBALLS=$(JUNKDIRS:%=$(WEBDIR)/%.tar.bz2) BZRBROWSE=$(WEBDIR)/bzrbrowse.cgi $(WEBDIR)/file.png $(WEBDIR)/folder.png -upload: check webpages +upload: fastcheck webpages bzr push send-web # Rusty's upload script. @@ -58,7 +60,7 @@ $(BZRBROWSE): $(WEBDIR)/%: web/bzrbrowse/% cp $< $@ $(WEBDIR)/info/%.html: $(WEBDIR)/tarballs/%.tar.bz2 $(WEBDIR)/tarballs/with-deps/%.tar.bz2 - @URLPREFIX=../ php5 web/staticmoduleinfo.php ccan/$* > $@ + @URLPREFIX=../ php5 web/staticmoduleinfo.php `pwd`/ccan/$* > $@ $(WEBDIR)/tarballs/%.tar.bz2: ccan/%/_info tar -c -j -f $@ `bzr ls --recursive --versioned --kind=file ccan/$*`