Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (43 sloc) 1.151 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/11-XS_effects.pod \
5250531 @kthakore Bumped the pdf and html
kthakore authored
24 src/12-PDL_OpenGL.pod \
25 src/13-free_resources.pod
8c82f36 @kthakore Out line for CPAN added
kthakore authored
26
f415455 @kthakore Adding build system
kthakore authored
27 endif
28
29 default: prepare pdf clean
30
31 prepare: clean
32 mkdir build
33
34 html: prepare $(CHAPTERS) bin/book-to-html
35 $(PERL) bin/book-to-html $(CHAPTERS) > $(BOOK).html
36
37 pdf: tex lib/Makefile
38 #cp src/mmd-table.svg build/mmd-table.svg
39 cd build && make -I ../lib -f ../lib/Makefile
40
41 tex: prepare $(CHAPTERS) lib/SDLManualLatex.pm lib/book.sty bin/book-to-latex
42 $(PERL) -Ilib bin/book-to-latex --paper $(PAPER) $(CHAPTERS) > $(BOOK).tex
43
7e0c511 @kthakore Making a dist folder for distribution purposes
kthakore authored
44 rel_pdf: pdf
45 cp $(BOOK).pdf dist/SDL_Manual.pdf
46
47 rel_html: html
48 cp $(BOOK).html dist/SDL_Manual.html
49
50 bump: rel_pdf rel_html
f415455 @kthakore Adding build system
kthakore authored
51
52 clean:
53 rm -rf build/
54
55 .PHONY: clean
56
57 # vim: set noexpandtab
Something went wrong with that request. Please try again.