From 1ca9055590b1e6953c3ccc6f92a6ce889caa6c56 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 30 Jul 2010 20:18:52 +0100 Subject: Added man page, tidied docs --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d479cce..31f402b 100644 --- a/Makefile +++ b/Makefile @@ -7,11 +7,14 @@ TARGETS = $(NAME) OBJ = $(SRC:.c=.o) MAN = $(TARGETS:=.1) +HEADERS = spout.h font.h sintable.h +WEB = web/index.html + include config.mk all: $(TARGETS) -$(OBJ): config.mk spout.h +$(OBJ): config.mk $(HEADERS) .c.o: @echo CC $< @@ -21,12 +24,16 @@ $(TARGETS): $(OBJ) @echo LD $@ @cc -o $@ $(OBJ) $(LDFLAGS) +$(WEB): web/doap.ttl + @echo making webpage + @sh web/makepage.sh "Spout - A simple caveflying game" web/doap.ttl > $(WEB) + clean: - rm -f -- $(TARGETS) $(OBJ) $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION).tar.gz.sig + rm -f -- $(TARGETS) $(WEB) $(OBJ) $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION).tar.gz.sig dist: clean @mkdir -p $(NAME)-$(VERSION) - @cp -R $(SRC) $(NAME).h Makefile config.mk COPYING README $(NAME)-$(VERSION) + @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 @@ -52,7 +59,4 @@ uninstall: @echo uninstalling manual pages from $(DESTDIR)$(MANPREFIX)/man1 @for i in $(MAN); do rm -f $(DESTDIR)$(MANPREFIX)/man1/$$i; done -test: all - @echo no tests yet! - .PHONY: all clean dist install uninstall test -- cgit v1.2.3