Add control file for shipper.
[open-adventure.git] / Makefile
1 # Makefile for the open-source release of adventure 2.5
2
3 OBJS=main.o init.o actions1.o actions2.o score.o misc.o datime.o
4 SOURCES=$(OBJS:.o=.c) COPYING NEWS README advent.text control
5
6 .c.o:
7         gcc -O $(DBX) -c $<
8
9 advent: $(OBJS)
10         gcc -O $(DBX) -o advent $(OBJS)
11
12 main.o:         misc.h funcs.h
13
14 init.o:         misc.h main.h share.h funcs.h
15
16 actions1.o:     misc.h main.h share.h funcs.h
17
18 actions2.o:     misc.h main.h share.h funcs.h
19
20 score.o:        misc.h main.h share.h
21
22 misc.o:         misc.h main.h
23
24 clean:
25         rm -f *.o advent advent.html advent.6
26
27 # Requires asciidoc and xsltproc/docbook stylesheets.
28 .asc.6:
29         a2x --doctype manpage --format manpage $<
30 .asc.html:
31         a2x --doctype manpage --format xhtml -D . $<
32         rm -f docbook-xsl.css
33
34 advent-$(VERS).tar.gz: $(SOURCES) advent.6
35         tar --transform='s:^:advent-$(VERS)/:' --show-transformed-names -cvzf advent-$(VERS).tar.gz $(SOURCES) advent.6
36
37 dist: advent-$(VERS).tar.gz
38
39 release: advent-$(VERS).tar.gz advent.html
40         shipper version=$(VERS) | sh -e -x
41
42 refresh: advent.html
43         shipper -N -w version=$(VERS) | sh -e -x