From 8665cb69efbee6a6e896fa00d69db8aa8b8a691a Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 6 Aug 2010 00:25:32 +0100 Subject: Updated web page, set defaults from config.h --- Makefile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 31f402b..6641a5f 100644 --- a/Makefile +++ b/Makefile @@ -7,14 +7,14 @@ TARGETS = $(NAME) OBJ = $(SRC:.c=.o) MAN = $(TARGETS:=.1) -HEADERS = spout.h font.h sintable.h +HEADERS = spout.h config.def.h font.h sintable.h WEB = web/index.html include config.mk all: $(TARGETS) -$(OBJ): config.mk $(HEADERS) +$(OBJ): config.mk config.h $(HEADERS) .c.o: @echo CC $< @@ -24,9 +24,17 @@ $(TARGETS): $(OBJ) @echo LD $@ @cc -o $@ $(OBJ) $(LDFLAGS) -$(WEB): web/doap.ttl +config.h: + @echo creating $@ from config.def.h + @cp config.def.h $@ + +$(WEB): web/index.txt web/header.html web/footer.html web/doap.ttl @echo making webpage - @sh web/makepage.sh "Spout - A simple caveflying game" web/doap.ttl > $(WEB) + @cat web/header.html > $@ + @smu < web/index.txt >> $@ + @echo '
' >> $@ + @sh web/summary.sh web/doap.ttl | smu >> $@ + @cat web/footer.html >> $@ clean: rm -f -- $(TARGETS) $(WEB) $(OBJ) $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION).tar.gz.sig @@ -36,8 +44,8 @@ dist: clean @cp -R $(SRC) $(HEADERS) Makefile config.mk COPYING README $(NAME)-$(VERSION) @for i in $(MAN); do \ sed "s/VERSION/$(VERSION)/g" < $$i > $(NAME)-$(VERSION)/$$i; done - @tar -c $(NAME)-$(VERSION) | gzip -c > $(NAME)-$(VERSION).tar.gz - @gpg -b < $(NAME)-$(VERSION).tar.gz > $(NAME)-$(VERSION).tar.gz.sig + @tar -c $(NAME)-$(VERSION) | gzip -c > web/releases/$(NAME)-$(VERSION).tar.gz + @gpg -b < web/releases/$(NAME)-$(VERSION).tar.gz > web/releases/$(NAME)-$(VERSION).tar.gz.sig @rm -rf $(NAME)-$(VERSION) @echo $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION).tar.gz.sig -- cgit v1.2.3