Makefile看不懂 - Linux

By Liam
at 2011-03-03T23:22
at 2011-03-03T23:22
Table of Contents
請教各位大大
下面是GNU Make 4.14 Generating prerequisites automatically的一段rule
Here is the pattern rule to generate a file of prerequisites (i.e., a
makefile) called `name.d' from a C source file called `name.c':
%.d: %.c
@set -e; rm -f $@; \
$(CC) -M $(CPPFLAGS) $< > $@.$$$$; \ <------不懂
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ <----不懂
rm -f $@.$$$$
主要是不懂第二行$@.$$$$後面的$$$$是什麼意思
第三行 sed有人能幫我分解一下嗎 感謝
--
Tags:
Linux
All Comments

By Jacob
at 2011-03-07T06:48
at 2011-03-07T06:48

By Ivy
at 2011-03-10T11:35
at 2011-03-10T11:35
Related Posts
便宜的 Linux 課程

By Elvira
at 2011-03-03T14:54
at 2011-03-03T14:54
xrdp連線問題

By Regina
at 2011-03-03T13:27
at 2011-03-03T13:27
如何在windows 7 雙系統中砍掉ubuntu

By Quanna
at 2011-03-03T10:10
at 2011-03-03T10:10
關於NVRAM與修改BIOS的開機程序

By Faithe
at 2011-03-03T01:36
at 2011-03-03T01:36
請問是否可以寫批次檔抓FTP最新更新的檔案..

By Ida
at 2011-03-03T01:13
at 2011-03-03T01:13