20,741
edits
Hamzaalloush (talk | contribs) |
m (→MXE's Makefile: replace <pre> tags with <syntaxhighlight>) |
||
| Line 82: | Line 82: | ||
for example, a simple: | for example, a simple: | ||
< | <syntaxhighlight lang="bash"> | ||
$ cd mxe/ | $ cd mxe/ | ||
$ make | $ make | ||
</ | </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 | ||
< | <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')) | ||
</ | </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": | ||
< | <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> | ||
</ | </syntaxhighlight> | ||
=== MXE's Makefile build process === | === MXE's Makefile build process === | ||