Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (43 sloc) 1.151 kb
f4154557 »
2010-08-22 Adding build system
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 = \
6fb4b02b »
2010-08-24 Added structure to Game Loop chapter.
13 src/00-preface.pod \
14 src/01-first.pod \
15 src/02-drawing.pod \
16 src/03-events.pod \
36ceb110 »
2010-08-24 Added outline for Pong chapter
17 src/04-game.pod \
c769947e »
2010-10-12 Added tetris outline
18 src/05-pong.pod \
59c26cb3 »
2010-10-12 Out line for music and sound added
19 src/06-tetris.pod \
26df2f5a »
2010-11-07 Added the puzz chapter, edited it a bit.
20 src/07-puzz.pod \
21 src/08-music_and_sound.pod \
22 src/09-CPAN.pod \
23 src/11-XS_effects.pod \
52505315 »
2010-12-31 Bumped the pdf and html
24 src/12-PDL_OpenGL.pod \
25 src/13-free_resources.pod
8c82f36e »
2010-10-12 Out line for CPAN added
26
f4154557 »
2010-08-22 Adding build system
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
7e0c511c »
2010-12-28 Making a dist folder for distribution purposes
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
f4154557 »
2010-08-22 Adding build system
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.