diff --git a/Makefile b/Makefile deleted file mode 100644 index b3ae640..0000000 --- a/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -DESTDIR = /srv/http/woozle.org - -TEMPLATE = template.html.m4 -MDWNTOHTML = ./mdwntohtml $(TEMPLATE) - -# HTML to be generated -HTML = - -# Things to copy -COPY = - -# Directories in which %.mdwn generates %.html -PLAIN = - -# Other targets for "make all" -TARGETS = html copy images - -all: default - --include *.mk */*.mk - -$(DESTDIR)/%.html: %.mdwn $(TEMPLATE) - @mkdir -p $(dir $@) - $(MDWNTOHTML) < $< > $@ - -$(DESTDIR)/%: % - @mkdir -p $(dir $@) - cp $< $@ - -$(DESTDIR)/%-sm.jpg: %.jpg - jpegtopnm $< | pnmscale -xysize 400 400 | pnmtojpeg > $@ - -$(DESTDIR)/tmp: - mkdir -p $@ - -$(DESTDIR)/footer.xml: $(TEMPLATE) - awk '(/FOOT/) { a += 1; next; } (a == 1) { print; }' $< > $@ - -default: $(TARGETS) - -MDWN = $(wildcard $(addsuffix /*.mdwn, $(PLAIN))) -HTML += $(patsubst %.mdwn, %.html, $(MDWN)) - -html: $(addprefix $(DESTDIR)/, $(HTML)) -copy: $(addprefix $(DESTDIR)/, $(COPY)) -images: $(addprefix $(DESTDIR)/, $(IMAGES)) - -clean: - rm -rf $(wildcard $(DESTDIR)/*) diff --git a/birds/birds.mk b/birds/birds.mk deleted file mode 100644 index 9e6500e..0000000 --- a/birds/birds.mk +++ /dev/null @@ -1,4 +0,0 @@ -PLAIN += birds -COPY += $(wildcard birds/*.png) -COPY += $(wildcard birds/*.jpg) -COPY += $(wildcard birds/*.gif) diff --git a/derby/derby.mk b/derby/derby.mk deleted file mode 100644 index 6b06ecd..0000000 --- a/derby/derby.mk +++ /dev/null @@ -1,5 +0,0 @@ -PLAIN += derby -COPY += derby/scrimmage.pdf derby/lineup.pdf - -$(DESTDIR)/derby/%.pdf: derby/%.ps - ps2pdf $< $@ diff --git a/derby/install b/derby/install new file mode 100755 index 0000000..a1818ef --- /dev/null +++ b/derby/install @@ -0,0 +1,11 @@ +#! /bin/sh + +DESTDIR=${1:-/srv/http/woozle.org/derby} + +for src in *.ps; do + target=$DESTDIR/${src%.ps}.pdf + if older $target $src; then + echo "PDF $src" + pstopdf $src $target + fi +done diff --git a/led-scoreboard/build.mk b/led-scoreboard/build.mk deleted file mode 100644 index f2b99ca..0000000 --- a/led-scoreboard/build.mk +++ /dev/null @@ -1 +0,0 @@ -PLAIN += led-scoreboard diff --git a/scoreboard/scoreboard.mk b/scoreboard/scoreboard.mk deleted file mode 100644 index 247d761..0000000 --- a/scoreboard/scoreboard.mk +++ /dev/null @@ -1,15 +0,0 @@ -PLAIN += scoreboard -COPY += scoreboard/screenshot.png -COPY += scoreboard/logos.html -COPY += scoreboard/others.html -COPY += scoreboard/other-browsers.png -COPY += scoreboard/chrome.png - -TARGETS += $(DESTDIR)/scoreboard/live/index.html - -$(DESTDIR)/scoreboard/live/.git: - cd $(DESTDIR)/scoreboard; git clone /home/neale/projects/derby/scoreboard live - -$(DESTDIR)/scoreboard/live/index.html: $(DESTDIR)/scoreboard/live/.git -$(DESTDIR)/scoreboard/live/index.html: /home/neale/projects/derby/scoreboard - cd $(DESTDIR)/scoreboard/live; git pull diff --git a/track/track.mk b/track/track.mk deleted file mode 100644 index 82626ea..0000000 --- a/track/track.mk +++ /dev/null @@ -1,7 +0,0 @@ -TARGETS += $(DESTDIR)/track/index.html - -$(DESTDIR)/track/.git: - cd $(DESTDIR); git clone /home/neale/projects/derby/track - -$(DESTDIR)/track/index.html: $(DESTDIR)/track/.git - cd $(DESTDIR)/track; git pull diff --git a/woozle.mk b/woozle.mk deleted file mode 100644 index 737015a..0000000 --- a/woozle.mk +++ /dev/null @@ -1,12 +0,0 @@ -PLAIN += . -COPY += icon.png style.css style-black.css set.cgi $(TEMPLATE) -COPY += google7f698b9893809122.html -HTML += people.html -COPY += robots.txt -COPY += derbygirl.png - -$(DESTDIR)/people.html: people.sh template.html.m4 - sh $< | $(MDWNTOHTML) > $@ - -$(DESTDIR)/%.cgi: %.cgi.c - $(CC) -Wall -Werror -o $@ $< diff --git a/xmas/xmas.mk b/xmas/xmas.mk deleted file mode 100644 index 8dcc333..0000000 --- a/xmas/xmas.mk +++ /dev/null @@ -1,5 +0,0 @@ -PLAIN += $(wildcard xmas/*) - -XMAS_IMAGES = $(wildcard xmas/*/*.jpg) -XMAS_IMAGES_SC = $(patsubst %.jpg, %-sm.jpg, $(XMAS_IMAGES)) -IMAGES += $(XMAS_IMAGES) $(XMAS_IMAGES_SC)