X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=Makefile-web;h=0e44ab2e75ad6eb8842e2e93646115b2db2844c0;hp=2258584f921ec524a0acf07888ca18098c5cabb0;hb=bbf2f9cef4bdbb3841869e9b87f234886985f7e8;hpb=5008de765e1c1550aad1b3697713f7549774a9c9 diff --git a/Makefile-web b/Makefile-web index 2258584f..0e44ab2e 100644 --- a/Makefile-web +++ b/Makefile-web @@ -1,5 +1,5 @@ # 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)) @@ -8,12 +8,13 @@ WEB_SUBDIRS=$(WEBDIR)/tarballs $(WEBDIR)/junkcode $(WEBDIR)/tarballs/with-deps $ 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 bzr push send-web # Rusty's upload script. -webpages: $(WEB_SUBDIRS) $(WEBDIR)/junkcode $(WEBDIR)/list.html $(WEBDIR)/index.html $(WEBDIR)/upload.html $(WEBDIR)/uploader.php $(WEBDIR)/example-config.h $(WEBDIR)/ccan.jpg $(DIRECT_TARBALLS) $(DEPEND_TARBALLS) $(WEBDIR)/ccan.tar.bz2 $(WEBDIR)/Makefile-ccan $(ALL_PAGES) $(JUNKPAGES) $(JUNKBALLS) +webpages: $(WEB_SUBDIRS) $(WEBDIR)/junkcode $(WEBDIR)/list.html $(WEBDIR)/index.html $(WEBDIR)/upload.html $(WEBDIR)/uploader.php $(WEBDIR)/example-config.h $(WEBDIR)/ccan.jpg $(BZRBROWSE) $(DIRECT_TARBALLS) $(DEPEND_TARBALLS) $(WEBDIR)/ccan.tar.bz2 $(WEBDIR)/Makefile-ccan $(ALL_PAGES) $(JUNKPAGES) $(JUNKBALLS) $(WEB_SUBDIRS): mkdir -p $@ @@ -53,6 +54,9 @@ $(WEBDIR)/Makefile-ccan: Makefile-ccan $(WEBDIR)/ccan.jpg: web/ccan.jpg cp $< $@ +$(BZRBROWSE): $(WEBDIR)/%: web/bzrbrowse/% + cp $< $@ + $(WEBDIR)/info/%.html: $(WEBDIR)/tarballs/%.tar.bz2 $(WEBDIR)/tarballs/with-deps/%.tar.bz2 @URLPREFIX=../ php5 web/staticmoduleinfo.php ccan/$* > $@