summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-11-10 19:40:36 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-11-10 19:40:36 +0000
commita3cc428796ed838123b0cbca2cdb70573780ed93 (patch)
treecbbfabd69427fcf766991ffed2416d294a8b2239
parent7aac4188d2fbb3b72e36b7daa9a9a50cf67333d6 (diff)
downloadrockbox-a3cc428796ed838123b0cbca2cdb70573780ed93.tar.gz
rockbox-a3cc428796ed838123b0cbca2cdb70573780ed93.zip
Create features.tex without intermediate file.
Using features.tex as intermediate file for creating features.tex is a bit confusing, and there is no real need for using an intermediate file. Change some hardcoded output files while at it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30959 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--manual/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/manual/Makefile b/manual/Makefile
index 719f4509fe..e091fdc4ee 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -38,26 +38,27 @@ manual-prep: objdir-check rockbox.tex $(OBJDIR)/CREDITS.tex $(OBJDIR)/version.te
38 38
39$(OBJDIR)/$(MANFILE).tex: 39$(OBJDIR)/$(MANFILE).tex:
40 @echo "creating $(notdir $@)" 40 @echo "creating $(notdir $@)"
41 $(SILENT)printf "\\\\newcommand{\\\\platform}{${MANUALDEV}}\n" > $(OBJDIR)/$(MANFILE).tex 41 $(SILENT)printf "\\\\newcommand{\\\\platform}{${MANUALDEV}}\n" > $@
42 $(SILENT)printf "\\\\newcommand{\\\\buildversion}{$(VERSION)}\n" >> $(OBJDIR)/$(MANFILE).tex 42 $(SILENT)printf "\\\\newcommand{\\\\buildversion}{$(VERSION)}\n" >> $@
43 $(SILENT)printf "\\\\input{rockbox.tex}\n" >> $(OBJDIR)/$(MANFILE).tex 43 $(SILENT)printf "\\\\input{rockbox.tex}\n" >> $@
44 44
45$(OBJDIR)/CREDITS.tex: $(DOCSDIR)/CREDITS 45$(OBJDIR)/CREDITS.tex: $(DOCSDIR)/CREDITS
46 @echo "processing $(notdir $^)" 46 @echo "processing $(notdir $^)"
47 $(SILENT)perl credits.pl < $(DOCSDIR)/CREDITS > $(OBJDIR)/CREDITS.tex 47 $(SILENT)perl credits.pl < $(DOCSDIR)/CREDITS > $@
48 48
49$(OBJDIR)/version.tex: 49$(OBJDIR)/version.tex:
50 @echo "creating $(notdir $@)" 50 @echo "creating $(notdir $@)"
51 $(SILENT)printf "%s%%" $(VERSION) > $(OBJDIR)/version.tex 51 $(SILENT)printf "%s%%" $(VERSION) > $@
52 52
53$(OBJDIR)/features.tex: $(ROOTDIR)/apps/features.txt 53$(OBJDIR)/features.tex: $(ROOTDIR)/apps/features.txt
54 @echo "processing $(notdir $^)" 54 @echo "processing $(notdir $^)"
55 $(SILENT)mkdir -p `dirname $@` 55 $(SILENT)mkdir -p `dirname $@`
56 $(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ 56 $(SILENT) for f in \
57 $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \ 57 $$(cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
58 grep -v "^\#" | grep -v "^$$" > $@; \ 58 $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" \
59 for f in `cat $(OBJDIR)/features.tex`; do feat="$$feat\\n\\\\edef\\\\UseOption{\\\\UseOption,$$f}" ; done ; \ 59 -imacros "button.h" - | grep -v "^\#" | grep -v "^$$"); \
60 printf "$$feat" >$(OBJDIR)/features.tex 60 do feat="$$feat\\n\\\\edef\\\\UseOption{\\\\UseOption,$$f}"; done ; \
61 printf "$$feat" > $@
61 62
62manual-pdf: objdir-check features manual-prep rockbox.tex 63manual-pdf: objdir-check features manual-prep rockbox.tex
63 $(SILENT)$(MAKE) -C $(OBJDIR) buildmanual 64 $(SILENT)$(MAKE) -C $(OBJDIR) buildmanual