Tools 2011.01.26 09:36
'make' can tell difference between normal line and command only by using 'tab'.
It's same in GNU Automake.
Here two simple 'Makefile.am' - A, B.
[A] ... if COND_X [spaces]VARX=xxx endif ... [B] ... if COND_X [tab]VARX=xxx endif ...
Only difference is leading spaces [A] and leading tab [B].
But, in case of [B], make regard 'VARX=xxx' as command.
So, 'Makefile.in' generated by 'automake' looks like follows.
[A] ... (usually, at the head of Makefile.in) VARX=xxx ... (start rules) all: config.h ... [B] ... (usually, at the end of Makefile.in) .PHONY [tab]VARX=xxx ...
So, in case [B], 'VARX' cannot be used as a variable at the 'rule' part!
The point is, "'Tab' means 'Command' in 'Make'!".
Keep this in mind!
'Tools' 카테고리의 다른 글
|[ Emacs ] key-bindings.... (my environment) (0)||2012.03.23|
|Interesting rule of GNU make. (0)||2012.03.23|
|[Tools] Customizing skip list of GNU Global (including regular expression) (0)||2011.07.06|
|[Tools] 'Tab' means 'Command' in Make. (0)||2011.01.26|
|[Emacs] use Semantic with global... (0)||2010.06.29|
|[Tool] gnumake... (0)||2010.02.19|