日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

GNU make manual 翻译( 一百五十九)

發布時間:2024/4/17 编程问答 52 豆豆
生活随笔 收集整理的這篇文章主要介紹了 GNU make manual 翻译( 一百五十九) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

繼續翻譯

A computed variable name need not consist entirely of a single variable reference. It can contain several variable references, as well as some invariant text. For example,a_dirs := dira dirb1_dirs := dir1 dir2a_files := filea fileb1_files := file1 file2ifeq "$(use_a)" "yes"a1 := aelsea1 := 1endififeq "$(use_dirs)" "yes"df := dirselsedf := filesendifdirs := $($(a1)_$(df))will give `dirs' the same value as `a_dirs', `1_dirs', `a_files' or `1_files' depending on the settings of `use_a' and `use_dirs'. Computed variable names can also be used in substitution references:a_objects := a.o b.o c.o1_objects := 1.o 2.o 3.osources := $($(a1)_objects:.o=.c)defines `sources' as either `a.c b.c c.c' or `1.c 2.c 3.c', depending on the value of `a1'.

一個被計算的變量名不需要有一個單獨的變量參照組成。它可以包含幾個變量參照,也可以包含靜態文本。例如,

  a_dirs := dira dirb

  1_dirs := dir1 dir2

  a_files := filea fileb
  1_files := file1 file2

  ifeq "$(use_a)" "yes"
    a1 := a
  else
    a1 := 1
  endif

  ifeq "$(use_dirs)" "yes"
    df := dirs
  else
    df := files
  endif

  dirs := $($(a1)_$(df))

將要給出 `dirs' 的值為 `a_dirs', `1_dirs', `a_files' 或者
`1_files' ,這取決于 `use_a' 或者 `use_dirs'.

被計算的變量名字也可以用在替換參照中:

  a_objects := a.o b.o c.o

  1_objects := 1.o 2.o 3.o

  sources := $($(a1)_objects:.o=.c)

定義 `sources' 為 `a.c b.c c.c' 或者 `1.c 2.c 3.c', 取決于`a1'的值。

后文待續

轉載于:https://www.cnblogs.com/gaojian/archive/2012/10/04/2711255.html

總結

以上是生活随笔為你收集整理的GNU make manual 翻译( 一百五十九)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。