Makefile (817B)
1 include config.mk 2 3 .PHONY: all release gopher-release install clean 4 .SUFFIXES: .txt .html 5 6 all: release gopher-release 7 release: $(TARBALL) 8 gopher-release: gopher-$(TARBALL) 9 10 $(TARBALL): $(FEEDS) $(PAGES) $(EXTRA) 11 tar -cjf $@ $(PAGES) $(EXTRA) $(FEEDS) 12 13 gopher-$(TARBALL): index.gph 14 tar -cjf $@ 20*/*/*.txt index.gph 15 16 index.txt: 17 sh utils/genindex.sh > $@ 18 19 index.gph: 20 sh utils/gophermap.sh > $@ 21 22 $(FEEDS): index.txt 23 mkdir -p `dirname $@` 24 sed -Ef utils/feed.sed < index.txt > $@ 25 26 .txt.html: 27 $(MD) $< | cat $(HEADER) - $(FOOTER) > $@ 28 29 install: $(TARBALL) 30 mkdir -p $(PREFIX) 31 tar -xjf $(TARBALL) -C $(PREFIX) 32 33 gopher-install: gopher-$(TARBALL) 34 mkdir -p $(PREFIX) 35 tar -xjf gopher-$(TARBALL) -C $(PREFIX) 36 37 clean: 38 rm -f $(PAGES) $(FEEDS) $(TARBALL) gopher-$(TARBALL) index.txt index.gph 39 rmdir `dirname $(FEEDS)`