Makefile ã®çµã¿è¾¼ã¿é¢æ°ã®ä¸è¦§ã§ãã å ¬å¼ã®ããã¥ã¡ã³ããèªã¿ãªãããé¢æ°ã®å¼æ°ã¨ä½¿ãæ¹ã«ã¤ãã¦åå¿é²ã¨ãã¦ã¾ã¨ãã¾ããã Makefile ã§ã®é¢æ°ã®æ¸ãæ¹ã¯ $(é¢æ°å å¼æ°,...) ã¾ã㯠${é¢æ°å å¼æ°,...} ã§ãã æååæä½ã»æ¤ç´¢ã®é¢æ° subst æååã®ç½®æã§ãã使ãæ¹ã¯ $(subst ç½®æå,ç½®æå¾,対象) FILES := hoge.c hoge.h fuga.c fuga.h all: @echo $(subst hoge,piyo,$(FILES)) # => piyo.c piyo.h fuga.c fuga.h patsubst ãã¿ã¼ã³ãããã«ããæååã®ç½®æã§ãã使ãæ¹ã¯ $(patsubst ç½®æå,ç½®æå¾,対象) FILES := hoge.c hoge.h fuga.c fuga.h all: @echo $(patsubst %.c
{{#tags}}- {{label}}
{{/tags}}