|
1 If this is your first time building the HTML5 parser, you need to execute the |
|
2 following commands (from this directory) to bootstrap the translation: |
|
3 |
|
4 make sync # fetch remote source files and licenses |
|
5 make translate # perform the Java-to-C++ translation from the remote |
|
6 # sources |
|
7 make named_characters # Generate tables for named character tokenization |
|
8 |
|
9 If you make changes to the translator or the javaparser, you can rebuild by |
|
10 retyping 'make' in this directory. If you make changes to the HTML5 Java |
|
11 implementation, you can retranslate the Java sources from the htmlparser |
|
12 repository by retyping 'make translate' in this directory. |
|
13 |
|
14 The makefile supports the following targets: |
|
15 |
|
16 sync_htmlparser: |
|
17 Retrieves the HTML parser and Java to C++ translator sources from Mozilla's |
|
18 htmlparser repository. |
|
19 sync_javaparser: |
|
20 Retrieves the javaparser sources from Google Code. |
|
21 sync: |
|
22 Runs both sync_javaparser and sync_htmlparser. |
|
23 javaparser: |
|
24 Builds the javaparser library retrieved earlier by sync_javaparser. |
|
25 translator: |
|
26 Runs the javaparser target and then builds the Java to C++ translator from |
|
27 sources retrieved earlier by sync_htmlparser. |
|
28 libs: |
|
29 The default target. Alias for translator |
|
30 translate: |
|
31 Runs the translator target and then translates the HTML parser sources |
|
32 retrieved by sync_htmlparser copying the Java sources to ../javasrc. |
|
33 translate_from_snapshot: |
|
34 Runs the translator target and then translates the HTML parser sources |
|
35 stored in ../javasrc. |
|
36 named_characters: |
|
37 Generates data tables for named character tokenization. |
|
38 clean_javaparser: |
|
39 Removes the build products of the javaparser target. |
|
40 clean_htmlparser: |
|
41 Removes the build products of the translator target. |
|
42 clean: |
|
43 Runs both clean_javaparser and clean_htmlparser. |
|
44 |
|
45 Ben Newman (23 September 2009) |
|
46 Henri Sivonen (21 April 2010) |