English 中文(简体)
撰写《成文法》规则,以便与多种语言的受抚养人一道实现升温目标
原标题:Writing a Makefile rule, for a SINGLE target with MULTIPLE dependacies

例如,如果我用硬件描述语言汇编档案,我可以以以下方式撰写马克文。

    analyze: a.v b.v c.v top.v
        vcs $(OPTIONS) a.v
        vcs $(OPTIONS) b.v
        vcs $(OPTIONS) c.v
        vcs $(OPTIONS) top.v

进行分析,将汇编其附属和安乐团的所有档案;建立最后可执行的文件。 • 如何撰写“SINGLEMakfile”规则,其中将汇编其所有属性并建立一个可起诉的——用一条规则将上述内容归纳为:

    analyze: %.v
        vcs $(OPTIONS) %.v

以上是单一档案依赖。 但是,如果我有多个档案,我如何处理多个档案? 我可以为所有受扶养人使用“住宿”。 我正在寻找一些选择,以便查阅“独立档案”,用于诉讼,但国家档案中心发现这种情况。

最佳回答

a. 每一行经分析的档案使用模拟邮票:

analyze : a.analyzed-stamp b.analyzed-stamp c.analyzed-stamp top.analyzed-stamp

%.analyzed-stamp : %.v
    vcs $(OPTIONS) $<
    touch $@
问题回答

暂无回答




相关问题
makefile: how to show line numbers for debugging?

Is there a way to have make display the line number where it declares an error? The -d switch doesn t seem to cut it. Updated: Example output: Reaping winning child 0x08aa8648 PID 9381 /bin/sh: ...

What is the reasoning behind the Makefile whitespace syntax?

I m revisiting Python after Michael Sparks s excellent walk through of Peter Norvig s Python spell checker at the SO DevDay in London. One of the points he highlighted was how clean Python is to look ...

Debugging GNU make

Is there a command line way in make to find out which of the prerequisites of a target is not updated?

How to add an all rule to this Makefile?

I want to just type make all and have the following Makefile do everything it s supposed to do: LEX = lex YACC = yacc CC = gcc calcu: y.tab.o lex.yy.o $(CC) -o calcu y.tab.o lex.yy.o -ly -lfl ...

How to discover number of *logical* cores on Mac OS X?

How can you tell, from the command line, how many cores are on the machine when you re running Mac OS X? On Linux, I use: x=$(awk /^processor/ {++n} END {print n+1} /proc/cpuinfo) It s not ...

Using extern in C doesn t work as expected

I have created two files: tunables.h #ifndef TUNABLES_H #define TUNABLES_H void tunables_load_conservative(); void tunables_load_aggressive(); extern int timer_x; #endif /*TUNABLES_H */ and ...

热门标签