Re: link: "Recursive Make Considered Harmful"

看板DFBSD_kernel作者時間21年前 (2005/01/12 21:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串26/31 (看更多)
Andrew Hacking <ahacking@optusnet.com.au> wrote: ... > My interpretation of the documentation was that it is impossible to > invoke an external tool and assign the output of a command to a > variable. This seemed a serious limitation _if_ that is the case, > and > rules out interfacing source code control systems, or whatever. It looks possible, but I'm not that familiar with Jam. actions AbsSymLink { target="$(2)" case "$target" in /*) ;; *) target=`pwd`/"$target";; esac $(RM) "$(1)" && $(LN) -s "$target" "$(1)" } Snippet taken from here: http://cvs.sourceforge.net/viewcvs.py/*checkout*/open-beos/current/Jamfile?rev=1.28 http://cvs.sourceforge.net/viewcvs.py/*checkout*/open-beos/current/Jamrules?rev=1.138 (top level Jamfile and Jamrules) Two sub Jamfiles. Looks simple enough: http://cvs.sourceforge.net/viewcvs.py/*checkout*/open-beos/current/src/apps/showimage/Jamfile?rev=1.8 http://cvs.sourceforge.net/viewcvs.py/*checkout*/open-beos/current/src/libs/zlib/Jamfile?rev=1.6 /Jonas Sundstr闣. www.kirilla.com
文章代碼(AID): #11vIRV00 (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #11vIRV00 (DFBSD_kernel)