summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChristi Scarborough <christi@coraline.org>2006-02-06 07:25:25 +0000
committerChristi Scarborough <christi@coraline.org>2006-02-06 07:25:25 +0000
commitd68d7c0ecf53cd1339327ba3d94241a946266eee (patch)
treec60521dcfbe7b64685d04c9668b1c27c17fe8056 /tools
parent4eca52941c38cd3faf35e0847515e21c09a07128 (diff)
downloadrockbox-d68d7c0ecf53cd1339327ba3d94241a946266eee.tar.gz
rockbox-d68d7c0ecf53cd1339327ba3d94241a946266eee.tar.bz2
rockbox-d68d7c0ecf53cd1339327ba3d94241a946266eee.zip
Rockbox manual in LaTeX initial commit. New option 'manual' added to configure. Some platforms (eg recorderv2, fmrecorder) produce the same manual target, so either can be selected from the configure script.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8596 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure44
1 files changed, 39 insertions, 5 deletions
diff --git a/tools/configure b/tools/configure
index 910b59ecf0..04acee843c 100755
--- a/tools/configure
+++ b/tools/configure
@@ -425,6 +425,9 @@ fi
apps="apps"
appsdir='\$(ROOTDIR)/apps'
+firmdir='\$(ROOTDIR)/firmware'
+toolsdir='\$(TOOLSDIR)/tools'
+
##################################################################
# Figure out target platform
@@ -848,7 +851,7 @@ fi
# Figure out build "type"
#
echo ""
- echo "Build (N)ormal, (D)evel, (S)imulator, (B)ootloader, (G)DB stub? (N)"
+ echo "Build (N)ormal, (D)evel, (S)imulator, (B)ootloader, (G)DB stub, (M)anual? (N)"
option=`input`;
@@ -893,6 +896,30 @@ fi
esac
echo "GDB stub build selected"
;;
+ [Mm])
+ appsdir='\$(ROOTDIR)/manual'
+ firmdir='\$(ROOTDIR)/manual/platform' # No Makefile here. Effectively ignores target
+ toolsdir=$firmdir;
+ toolset='';
+ apps="manual"
+ case $archos in
+ fmrecorder)
+ archos="recorderv2fm"
+ ;;
+ recorderv2)
+ archos="recorderv2fm"
+ ;;
+ ondio??)
+ archos="ondio"
+ ;;
+ h1??)
+ archos="h1xx"
+ ;;
+ *)
+ ;;
+ esac
+ echo "Manual build selected"
+ ;;
*)
debug=""
echo "Normal build selected"
@@ -1030,6 +1057,8 @@ sed > Makefile \
-e "s,@LOADADDRESS@,${loadaddress},g" \
-e "s,@EXTRADEF@,${extradefines},g" \
-e "s,@APPSDIR@,${appsdir},g" \
+ -e "s,@FIRMDIR@,${firmdir},g" \
+ -e "s,@TOOLSDIR@,${toolsdir},g" \
-e "s,@APPS@,${apps},g" \
-e "s,@SIMVER@,${simver},g" \
-e "s,@GCCVER@,${gccver},g" \
@@ -1043,10 +1072,11 @@ sed > Makefile \
## Automaticly generated. http://www.rockbox.org/
export ROOTDIR=@ROOTDIR@
-export FIRMDIR=\$(ROOTDIR)/firmware
+export FIRMDIR=@FIRMDIR@
export APPSDIR=@APPSDIR@
-export TOOLSDIR=\$(ROOTDIR)/tools
+export TOOLSDIR=@TOOLSDIR@
export DOCSDIR=\$(ROOTDIR)/docs
+export MANUALDIR=\${ROOTDIR}/manual
export DEBUG=@DEBUG@
export ARCHOS=@ARCHOS@
export ARCHOSROM=@ARCHOSROM@
@@ -1092,7 +1122,7 @@ export UNAME=@UNAME@
# Do not print "Entering directory ..."
MAKEFLAGS += --no-print-directory
-.PHONY: all clean tags zip tools
+.PHONY: all clean tags zip tools manual
all: tools
@SIMUL1@
@@ -1104,7 +1134,7 @@ clean:
@\$(MAKE) -C \$(FIRMDIR) clean OBJDIR=\$(BUILDDIR)/firmware
@\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/@APPS@
@\$(MAKE) -C \$(TOOLSDIR) clean
- @rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.h
+ @rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.h manual *.pdf
tools:
\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
@@ -1121,6 +1151,10 @@ zip:
7zip:
@\$(TOOLSDIR)/buildzip.pl -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
+
+manual:
+ @\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual buildmanual
+
EOF
if [ "yes" = "$simulator" ]; then