From 02c4710c2c89cb693415dabe20f08d4e526ab6fd Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 7 Aug 2011 15:16:23 +0100 Subject: Add web page, ready makefile --- Makefile | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 986f990..5a2da72 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ NAME = getxbook SRC = getgbook.c LIB = util.o -SCRIPTS = getgmissing.sh makebookpdf.sh +SCRIPTS = getgmissing.sh getgfailed.sh makebookpdf.sh +DOC = README COPYING LEGAL BIN = $(SRC:.c=) OBJ = $(SRC:.c=.o) $(LIB) @@ -35,13 +36,31 @@ uninstall: cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN) $(SCRIPTS) clean: - rm -f -- $(BIN) $(OBJ) util.a + rm -f -- $(BIN) $(OBJ) util.a index.html dist: - @mkdir -p $(NAME)-$(VERSION) - @cp $(SRC) $(SCRIPTS) util.h util.c Makefile config.mk COPYING $(NAME)-$(VERSION) - @tar c $(NAME)-$(VERSION) | gzip -c > $(NAME)-$(VERSION).tar.gz - @rm -rf $(NAME)-$(VERSION) - @echo $(NAME)-$(VERSION).tar.gz + mkdir -p $(NAME)-$(VERSION) + cp $(SRC) $(SCRIPTS) $(DOC) util.h util.c Makefile config.mk $(NAME)-$(VERSION) + tar c $(NAME)-$(VERSION) | gzip -c > $(NAME)-$(VERSION).tar.gz + gpg -b < $(NAME)-$(VERSION).tar.gz > $(NAME)-$(VERSION).tar.gz.sig + rm -rf $(NAME)-$(VERSION) + echo $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION).tar.gz.sig + +index.html: doap.ttl README + echo making webpage + echo "$(NAME)" > $@ + echo '' >> $@ + echo '" >> $@ + smu < README >> $@ + echo "

download

" >> $@ + echo "[$(NAME) $(VERSION)]($(NAME)-$(VERSION).tar.gz) ([sig]($(NAME)-$(VERSION).tar.gz.sig))" | smu >> $@ + echo '
' >> $@ + sh websummary.sh doap.ttl | smu >> $@ + echo '' >> $@ .PHONY: all clean install uninstall dist +.SILENT: index.html dist -- cgit v1.2.3