Building FlightGear - Cross Compiling: Difference between revisions

Jump to navigation Jump to search
m
→‎MXE's Makefile: replace <pre> tags with <syntaxhighlight>
m (→‎MXE's Makefile: replace <pre> tags with <syntaxhighlight>)
Line 82: Line 82:


for example, a simple:
for example, a simple:
<pre>
<syntaxhighlight lang="bash">
$ cd mxe/
$ cd mxe/
$ make
$ make
</pre>
</syntaxhighlight>


by use of native tools such as the GNU Make Standard Library functions and simple substitution, the Makefile parses through a list of package names, that are contained within an index.html file, and stores them into a white-space separated string.
by use of native tools such as the GNU Make Standard Library functions and simple substitution, the Makefile parses through a list of package names, that are contained within an index.html file, and stores them into a white-space separated string.


MXE's Makefile, Line:47  
MXE's Makefile, Line:47  
<pre>
<syntaxhighlight lang="make">
PKGS      := $(call set_create,\
PKGS      := $(call set_create,\
           $(shell $(SED) -n 's/^.* class="package">\([^<]*\)<.*$$/\1/p' '$(TOP_DIR)/index.html'))
           $(shell $(SED) -n 's/^.* class="package">\([^<]*\)<.*$$/\1/p' '$(TOP_DIR)/index.html'))
</pre>
</syntaxhighlight>


packages are contained in index.html as html table elements, the name of the package is the value of html subtype "package":  
packages are contained in index.html as html table elements, the name of the package is the value of html subtype "package":  
<pre>
<syntaxhighlight lang="html5">
<tr>
<tr>
         <td class="package">simgear</td>
         <td class="package">simgear</td>
Line 105: Line 105:
         <td class="website"><a href="https://sourceforge.net/projects/flightgear/">FlightGear Flight Simulator</a></td>
         <td class="website"><a href="https://sourceforge.net/projects/flightgear/">FlightGear Flight Simulator</a></td>
</tr>
</tr>
</pre>
</syntaxhighlight>


=== MXE's Makefile build process ===
=== MXE's Makefile build process ===

Navigation menu