Skip to content
This repository
Browse code

[Makefile] updates

Comments and some defaults changed
enable Article max-length option for rendering

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
commit bc86436515f221c1f351291dae95e5c7df0e0549 1 parent b343640
Christopher Hall authored July 15, 2010

Showing 1 changed file with 32 additions and 16 deletions. Show diff stats Hide diff stats

  1. 48  Makefile
48  Makefile
@@ -25,32 +25,46 @@
25 25
 # These  can be overridden on the command line:
26 26
 # (defaults indicated in [])
27 27
 #
28  
-#   WIKI_LANGUAGE    = language code [en]
  28
+#   WIKI_LANGUAGE              Language code [en]
29 29
 #
30  
-#   WIKI_FILE_PREFIX = prefix for all files in a data directory [wiki]
  30
+#   WIKI_FILE_PREFIX           Prefix for all files in a data directory [wiki]
31 31
 #
32  
-#   WIKI_VERSION     = version code for the current rendering operation [${todays-date}]
  32
+#   WIKI_VERSION               Version code for the current rendering operation [${todays-date}]
33 33
 #
34  
-#   WIKI_DIR_SUFFIX  = combined with language code to make a unique
35  
-#                      directory name [pedia]
  34
+#   WIKI_DIR_SUFFIX            Combined with language code to make a unique
  35
+#                              directory name [pedia]
36 36
 #
37  
-#   DESTDIR          = directory where rendered data will be stored
  37
+#   DESTDIR                    Directory where rendered data will be stored
38 38
 #
39  
-#   WORKDIR          = directory where all the working databases are stored
  39
+#   WORKDIR                    Directory where all the working databases are stored
40 40
 #
41  
-#   TEMPDIR          = optional directory to store LaTeX work files, point
42  
-#                      to a RAM disk [derived from ${WORKDIR}]
  41
+#   TEMPDIR                    Optional directory to store LaTeX work files, point
  42
+#                              to a RAM disk [derived from ${WORKDIR}]
43 43
 #
44  
-#   VERSION_TAG      = optional version string for the root programs/fonts [${todays-date}]
  44
+#   VERSION_TAG                Optional version string for the root programs/fonts [${todays-date}]
45 45
 #
46  
-#   PROGRESS_BAR     = enable progress bar when compiling mahatma.elf [NO]
  46
+#   PROGRESS_BAR               Enable progress bar when compiling mahatma.elf [NO]
47 47
 #
48  
-#   EXTRACT_VERSION_FROM = a link to XML file name that has an embedded date
49  
-#                          which will be used to set WIKI_VERSION
  48
+#   EXTRACT_VERSION_FROM       a link to XML file name that has an embedded date
  49
+#                              which will be used to set WIKI_VERSION
50 50
 #
51  
-#   MACHINE_COUNT    = Number of machines in the build cluster [9]
  51
+#   MACHINE_COUNT              Number of machines in the build cluster [9]
52 52
 #
53  
-#   PARALLEL_BUILD   = Number of threads/cores usable on each machine [3]
  53
+#   PARALLEL_BUILD             Number of threads/cores usable on each machine [3]
  54
+#
  55
+# Items controlling the compression - for reducing data size to fit smaller SD Card
  56
+#
  57
+#   ENABLE_LANGUAGES_LINKS     Enable links to other languages [YES]
  58
+#
  59
+#   ENABLE_IMAGES              Enable embedded images (Formulae) [YES]
  60
+#
  61
+#   ARTICLES_PER_BLOCK         Maximum number of articles to group in one block [1] (max 255)
  62
+#                              Larger number will give greater compression, but much slower load times
  63
+#
  64
+#   ARTICLE_BLOCK_SIZE         Size limit of compression block [262144] (max 524288)
  65
+#                              Only applies when ARTICLES_PER_BLOCK > 1
  66
+#
  67
+#   MAX_ARTICLE_LENGTH         Shorten articles over this length (length of rendered byte code) [UNLIMITED]
54 68
 
55 69
 
56 70
 # Include standard definitions
@@ -368,8 +382,9 @@ RENDER_BLOCK ?= 0
368 382
 # images are the output of the math turning it to NO will show TeX from 'alt'
369 383
 ENABLE_LANGUAGES_LINKS ?= YES
370 384
 ENABLE_IMAGES ?= YES
371  
-ARTICLES_PER_BLOCK ?= 32
  385
+ARTICLES_PER_BLOCK ?= 1
372 386
 ARTICLE_BLOCK_SIZE ?= 262144
  387
+MAX_ARTICLE_LENGTH ?= UNLIMITED
373 388
 
374 389
 
375 390
 # erase the working directories for the current language
@@ -436,6 +451,7 @@ render: fonts validate-destdir
436 451
 		ENABLE_IMAGES="${ENABLE_IMAGES}" \
437 452
 		ARTICLES_PER_BLOCK="${ARTICLES_PER_BLOCK}" \
438 453
 		ARTICLE_BLOCK_SIZE="${ARTICLE_BLOCK_SIZE}" \
  454
+		MAX_ARTICLE_LENGTH="${MAX_ARTICLE_LENGTH}" \
439 455
 		WIKI_VERSION="${WIKI_VERSION}" \
440 456
 		TEMPDIR="${TEMPDIR_PATH}" \
441 457
 		WORKDIR="${WORKDIR_PATH}" DESTDIR="${DESTDIR_PATH}"

0 notes on commit bc86436

Please sign in to comment.
Something went wrong with that request. Please try again.