Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 59 lines (44 sloc) 1.178 kB
f415455 @kthakore Adding build system
kthakore authored
1 PERL = perl
2
3 ifeq "$(PAPER)" ""
4 PAPER = $(shell paperconf)
5 endif
6
7 ifneq "$(TEST)" ""
8 BOOK = build/test.$(PAPER)
9 CHAPTERS = $(wildcard test/*.pod)
10 else
11 BOOK = build/SDL_Manual.$(PAPER)
12 CHAPTERS = \
6fb4b02 @kthakore Added structure to Game Loop chapter.
kthakore authored
13 src/00-preface.pod \
14 src/01-first.pod \
15 src/02-drawing.pod \
16 src/03-events.pod \
36ceb11 @kthakore Added outline for Pong chapter
kthakore authored
17 src/04-game.pod \
c769947 @kthakore Added tetris outline
kthakore authored
18 src/05-pong.pod \
59c26cb @kthakore Out line for music and sound added
kthakore authored
19 src/06-tetris.pod \
26df2f5 @kthakore Added the puzz chapter, edited it a bit.
kthakore authored
20 src/07-puzz.pod \
21 src/08-music_and_sound.pod \
22 src/09-CPAN.pod \
23 src/10-profiling.pod \
24 src/11-XS_effects.pod \
5250531 @kthakore Bumped the pdf and html
kthakore authored
25 src/12-PDL_OpenGL.pod \
26 src/13-free_resources.pod
8c82f36 @kthakore Out line for CPAN added
kthakore authored
27
f415455 @kthakore Adding build system
kthakore authored
28 endif
29
30 default: prepare pdf clean
31
32 prepare: clean
33 mkdir build
34
35 html: prepare $(CHAPTERS) bin/book-to-html
36 $(PERL) bin/book-to-html $(CHAPTERS) > $(BOOK).html
37
38 pdf: tex lib/Makefile
39 #cp src/mmd-table.svg build/mmd-table.svg
40 cd build && make -I ../lib -f ../lib/Makefile
41
42 tex: prepare $(CHAPTERS) lib/SDLManualLatex.pm lib/book.sty bin/book-to-latex
43 $(PERL) -Ilib bin/book-to-latex --paper $(PAPER) $(CHAPTERS) > $(BOOK).tex
44
7e0c511 @kthakore Making a dist folder for distribution purposes
kthakore authored
45 rel_pdf: pdf
46 cp $(BOOK).pdf dist/SDL_Manual.pdf
47
48 rel_html: html
49 cp $(BOOK).html dist/SDL_Manual.html
50
51 bump: rel_pdf rel_html
f415455 @kthakore Adding build system
kthakore authored
52
53 clean:
54 rm -rf build/
55
56 .PHONY: clean
57
58 # vim: set noexpandtab
Something went wrong with that request. Please try again.