summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-07-30 20:18:52 +0100
committerNick White <git@njw.me.uk>2010-07-30 20:18:52 +0100
commit1ca9055590b1e6953c3ccc6f92a6ce889caa6c56 (patch)
tree1dab6f831db5e526908f8cfba558529c61dde4ce /Makefile
parentca61acd4506afb0125ae64b33f5f90ee198c0f6e (diff)
Added man page, tidied docs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
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