forked from len0rd/rockbox
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
This commit is contained in:
parent
7aac4188d2
commit
a3cc428796
1 changed files with 11 additions and 10 deletions
|
@ -38,26 +38,27 @@ manual-prep: objdir-check rockbox.tex $(OBJDIR)/CREDITS.tex $(OBJDIR)/version.te
|
||||||
|
|
||||||
$(OBJDIR)/$(MANFILE).tex:
|
$(OBJDIR)/$(MANFILE).tex:
|
||||||
@echo "creating $(notdir $@)"
|
@echo "creating $(notdir $@)"
|
||||||
$(SILENT)printf "\\\\newcommand{\\\\platform}{${MANUALDEV}}\n" > $(OBJDIR)/$(MANFILE).tex
|
$(SILENT)printf "\\\\newcommand{\\\\platform}{${MANUALDEV}}\n" > $@
|
||||||
$(SILENT)printf "\\\\newcommand{\\\\buildversion}{$(VERSION)}\n" >> $(OBJDIR)/$(MANFILE).tex
|
$(SILENT)printf "\\\\newcommand{\\\\buildversion}{$(VERSION)}\n" >> $@
|
||||||
$(SILENT)printf "\\\\input{rockbox.tex}\n" >> $(OBJDIR)/$(MANFILE).tex
|
$(SILENT)printf "\\\\input{rockbox.tex}\n" >> $@
|
||||||
|
|
||||||
$(OBJDIR)/CREDITS.tex: $(DOCSDIR)/CREDITS
|
$(OBJDIR)/CREDITS.tex: $(DOCSDIR)/CREDITS
|
||||||
@echo "processing $(notdir $^)"
|
@echo "processing $(notdir $^)"
|
||||||
$(SILENT)perl credits.pl < $(DOCSDIR)/CREDITS > $(OBJDIR)/CREDITS.tex
|
$(SILENT)perl credits.pl < $(DOCSDIR)/CREDITS > $@
|
||||||
|
|
||||||
$(OBJDIR)/version.tex:
|
$(OBJDIR)/version.tex:
|
||||||
@echo "creating $(notdir $@)"
|
@echo "creating $(notdir $@)"
|
||||||
$(SILENT)printf "%s%%" $(VERSION) > $(OBJDIR)/version.tex
|
$(SILENT)printf "%s%%" $(VERSION) > $@
|
||||||
|
|
||||||
$(OBJDIR)/features.tex: $(ROOTDIR)/apps/features.txt
|
$(OBJDIR)/features.tex: $(ROOTDIR)/apps/features.txt
|
||||||
@echo "processing $(notdir $^)"
|
@echo "processing $(notdir $^)"
|
||||||
$(SILENT)mkdir -p `dirname $@`
|
$(SILENT)mkdir -p `dirname $@`
|
||||||
$(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
|
$(SILENT) for f in \
|
||||||
$(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \
|
$$(cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
|
||||||
grep -v "^\#" | grep -v "^$$" > $@; \
|
$(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" \
|
||||||
for f in `cat $(OBJDIR)/features.tex`; do feat="$$feat\\n\\\\edef\\\\UseOption{\\\\UseOption,$$f}" ; done ; \
|
-imacros "button.h" - | grep -v "^\#" | grep -v "^$$"); \
|
||||||
printf "$$feat" >$(OBJDIR)/features.tex
|
do feat="$$feat\\n\\\\edef\\\\UseOption{\\\\UseOption,$$f}"; done ; \
|
||||||
|
printf "$$feat" > $@
|
||||||
|
|
||||||
manual-pdf: objdir-check features manual-prep rockbox.tex
|
manual-pdf: objdir-check features manual-prep rockbox.tex
|
||||||
$(SILENT)$(MAKE) -C $(OBJDIR) buildmanual
|
$(SILENT)$(MAKE) -C $(OBJDIR) buildmanual
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue