• 1、wildcard : 扩展通配符2、notdir ： 去除路径3、patsubst ：替换通配符例子：建立一个测试目录，在测试目录下建立一个名为sub的子目录$mkdir test$ cd test$mkdir sub在test下，建立a.c和b.c2个文件，在sub目录... 1、wildcard : 扩展通配符2、notdir ： 去除路径3、patsubst ：替换通配符例子：建立一个测试目录，在测试目录下建立一个名为sub的子目录$ mkdir test$cd test$ mkdir sub在test下，建立a.c和b.c2个文件，在sub目录下，建立sa.c和sb.c2 个文件建立一个简单的Makefilesrc=$(wildcard *.c ./sub/*.c)dir=$(notdir $(src))obj=$(patsubst %.c,%.o,$(dir) )all:@echo$(src)@echo $(dir)@echo$(obj)@echo "end"执行结果分析：第一行输出：a.c b.c ./sub/sa.c ./sub/sb.cwildcard把 指定目录 ./ 和 ./sub/ 下的所有后缀是c的文件全部展开。第二行输出：a.c b.c sa.c sb.cnotdir把展开的文件去除掉路径信息第三行输出：a.o b.o sa.o sb.o在$(patsubst %.c,%.o,$(dir) )中，patsubst把$(dir)中的变量符合后缀是.c的全部替换成.o，任何输出。或者可以使用obj=$(dir:%.c=%.o)效果也是一样的。这里用到makefile里的替换引用规则，即用您指定的变量替换另一个变量。它的标准格式是$(var:a=b) 或${var:a=b}它的含义是把变量var中的每一个值结尾用b替换掉a今天在研究makefile时在网上看到一篇文章，介绍了使用函数wildcard得到指定目录下所有的C语言源程序文件名的方法，这下好了，不用手工一个一个指定需要编译的.c文件了，方法如下：SRC = $(wildcard *.c)等于指定编译当前目录下所有.c文件，如果还有子目录，比如子目录为inc，则再增加一个wildcard函数，象这样：SRC =$(wildcard *.c) \$(wildcard inc/*.c)
转载于:https://www.cnblogs.com/rayfloyd/archive/2012/12/04/2800995.html
展开全文
• <div><p>Wildcard URIs as described in the AP designate their wildcard'ed components by using "empty strings". This is confusing for many. A single wildcard <code>"*"</code> is what...
• <div><p>This PR revolves around giving the Reader capabilities to read from wildcard topics <p>There is a singleton routine called the topic scanner that gets triggered by the first reader that wants ...
• This will include all the segments of the path matched by the asterisk.</li><li>Adds additional checking for <code>wildcard</code> routes so that a change in route segments triggers a route change, ...
• <div><p>Can anybody tell me how I can use a wildcard with better-sqlite3? <p>In node-sqlite3 I can put the wildcard character (%) inside the parameter. In better-sqlite3 it seems like this is not ...
• <div><p>If an origin has a wildcard certificate, the origin frame allows it to narrow scope. But if we accept #177, then there is the potential for the origin to lose any claim to wildcards without ...
• <div><p>Added the ability to check Wildcard before bruteforcing</p><p>该提问来源于开源项目：OJ/gobuster</p></div>
• <div><p>Hello ! Just one question support of wildcard certificate is it a feature envisaged?</p><p>该提问来源于开源项目：GoogleCloudPlatform/gke-managed-certs</p></div>
• <p>Adding files using wildcard <h3>Steps to recreate <ol><li>inlude js files using wildcard </li><li>add "/assets/*.js" </li></ol> <h3>Current behavior <pre><code> > Bundler & Minifier...
• <div><p>Is it possible to query partial words with a wildcard query, such as "he*" for "hello"?</p><p>该提问来源于开源项目：RediSearch/RediSearch</p></div>
• <div><p>hi, <strong>Is your feature request related to a problem?...can be possible use addRegexEntity in manager for create a wildcard?</p><p>该提问来源于开源项目：axa-group/nlp.js</p></div>
• <div><p>Hi, <p>Are wildcard routes supported? ie /post/* where * could be 1 to n params. <p>Great router!</p><p>该提问来源于开源项目：auraphp/Aura.Router</p></div>
• <div><p>It seems that recursive wildcard isn't supported. <p>Example: <code>touch **</code></p> <p>Is there a way to enable it?</p><p>该提问来源于开源项目：rmyorston/busybox-w32</p></div>
• <div><p>Any chance of allowing wildcard searches? Currently i'm downloading the data from R7 and just searching for our specific brand. I think it would be awesome if I could just use your project...
• <div><p>It would be smarter to query *.target.xyz at the beginning and then ask the user whether they want to continue anyway or skip the dictionary test if there was a find, because the wildcard will...
• When this is the case, the subscription does not trigger on that wildcard topic. However if I change the topic to non-wildcard (<code>item.quantity.incremented), it works. <p>A workaround is to ...
• s wildcard certificate support. <p>This will remove the need for http port 80 availability as it uses txt dns record verification mode. It will be only available for syncloud.it domains as we control ...
• <p>But I think it should be made clear or have a wildcard operator that only operates on numbers to allow the original version to work.</p><p>该提问来源于开源项目：nelmio/alice</p></div>
• <div><p>Issue #157 highlighted a bug in the wildcard handling, and the code had a few <code>#ifdef</code>'s and comments regarding the abilities of different compilers. I believe this fix is not ...
• <div><p>I was wanted to run web server with wildcard subdomains: <pre><code>sh ws --hostname *.test.localhost </code></pre> <p>This will be very useful to test multi-tenant applications, when each ...
• <div><p>Is there a way to wildcard the IncludeAssembliesForScan setting? <p>I have 3 other assemblies that start with the same string "WebsiteArea." and i have more i'm working on. ...
• 23.33.55.11, tomorrow and I want, if possible to use wildcard at last series of numbers, like: 23.33.55.* or 23.33.55.% something like this. <h3>Environment description <p>BungeeCord - Spigot <h3>...
• <p>I tried to implemant wildcard in my items.yml to define an item named "log" which matches with all logs. So here's the line in the file: log: '*_LOG' <p>but when I reload, I ...
• <div><p>Right now I'd like it to work on domain and all of it'...<p>It would be cool if there were wildcard support where all subdomains were included by default by having a file: domain....

...