Roland Ver. 4.5 Información técnica Pagina 96

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 212
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 95
86 GNU make
For example, given:
objects=main1.o foo.o main2.o bar.o
mains=main1.o main2.o
the following generates a list which contains all the object files not in mains’:
$(filter-out $(mains),$(objects))
$(sort list)
Sorts the words of list in lexical order, removing duplicate words. The output
is a list of words separated by single spaces. Thus,
$(sort foo bar lose)
returns the value bar foo lose’.
Incidentally, since sort removes duplicate words, you can use it for this purpose
even if you don’t care about the sort order.
$(word n,text)
Returns the nth word of text. The legitimate values of n start from 1. If n is
bigger than the number of words in text, the value is empty. For example,
$(word 2, foo bar baz)
returns bar’.
$(wordlist s,e,text)
Returns the list of words in text starting with word s and ending with word e
(inclusive). The legitimate values of s start from 1; e may start from 0. If s is
bigger than the number of words in text, the value is empty. If e is bigger than
the number of words in text, words up to the end of text are returned. If s is
greater than e, nothing is returned. For example,
$(wordlist 2, 3, foo bar baz)
returns bar baz’.
$(words text)
Returns the number of words in text. Thus, the last word of text is
$(word $(words text),text).
$(firstword names...)
The argument names is regarded as a series of names, separated by whitespace.
The value is the first name in the series. The rest of the names are ignored.
For example,
$(firstword foo bar)
produces the result foo’. Although $(firstword text) is the same as $(word
1,text), the firstword function is retained for its simplicity.
$(lastword names...)
The argument names is regarded as a series of names, separated by whitespace.
The value is the last name in the series.
For example,
$(lastword foo bar)
Vista de pagina 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 211 212

Comentarios a estos manuales

Sin comentarios