Roland Ver. 4.5 Informações Técnicas Página 98

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 212
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 97
88 GNU make
$(suffix names...)
Extracts the suffix of each file name in names. If the file name contains a period,
the suffix is everything starting with the last period. Otherwise, the suffix is
the empty string. This frequently means that the result will be empty when
names is not, and if names contains multiple file names, the result may contain
fewer file names.
For example,
$(suffix src/foo.c src-1.0/bar.c hacks)
produces the result .c .c’.
$(basename names...)
Extracts all but the suffix of each file name in names. If the file name contains
a period, the basename is everything starting up to (and not including) the last
period. Periods in the directory part are ignored. If there is no period, the
basename is the entire file name. For example,
$(basename src/foo.c src-1.0/bar hacks)
produces the result src/foo src-1.0/bar hacks’.
$(addsuffix suffix,names...)
The argument names is regarded as a series of names, separated by whitespace;
suffix is used as a unit. The value of suffix is appended to the end of each
individual name and the resulting larger names are concatenated with single
spaces between them. For example,
$(addsuffix .c,foo bar)
produces the result foo.c bar.c’.
$(addprefix prefix,names...)
The argument names is regarded as a series of names, separated by whitespace;
prefix is used as a unit. The value of prefix is prepended to the front of each
individual name and the resulting larger names are concatenated with single
spaces between them. For example,
$(addprefix src/,foo bar)
produces the result src/foo src/bar’.
$(join list1,list2)
Concatenates the two arguments word by word: the two first words (one from
each argument) concatenated form the first word of the result, the two second
words form the second word of the result, and so on. So the nth word of the
result comes from the nth word of each argument. If one argument has more
words that the other, the extra words are copied unchanged into the result.
For example, $(join a b,.c .o) produces a.c b.o’.
Whitespace between the words in the lists is not preserved; it is replaced with
a single space.
This function can merge the results of the dir and notdir functions, to produce
the original list of files which was given to those two functions.
Vista de página 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 211 212

Comentários a estes Manuais

Sem comentários