diff options
Diffstat (limited to 'manual/Makefile')
-rw-r--r-- | manual/Makefile | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/manual/Makefile b/manual/Makefile index cc30a744b3..43ba4a65a7 100644 --- a/manual/Makefile +++ b/manual/Makefile | |||
@@ -1,17 +1,10 @@ | |||
1 | .PHONY: all buildmanual clean | 1 | DOCUMENT := rockbox-build |
2 | LATEX := pdflatex | ||
3 | include LaTeX.Rules | ||
4 | GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg` | ||
2 | 5 | ||
3 | all: rockbox-build.tex | 6 | .PHONY: all cleaner buildmanual output |
4 | 7 | ||
5 | rockbox-build.tex: rockbox.tex | 8 | buildmanual: rockbox-build.tex |
6 | @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build diriectory!; false; fi | 9 | @cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(ARCHOS)-$(VERSION).pdf |
7 | @mkdir -p $(OBJDIR) | ||
8 | @cp -R * $(OBJDIR) | ||
9 | @echo "\newcommand{\platform}{${ARCHOS}}" > $(OBJDIR)/rockbox-build.tex | ||
10 | @echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex | ||
11 | @echo "\input{rockbox.tex}" >> $(OBJDIR)/rockbox-build.tex | ||
12 | @mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile | ||
13 | make -C $(OBJDIR) | ||
14 | 10 | ||
15 | clean: | ||
16 | @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build diriectory!; false; fi | ||
17 | @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf | ||