Makefile 내에서의 alias
글쓴이: hidRomeo / 작성시간: 수, 2008/11/19 - 7:19오전
Makefile 을 작성하다가 alias 에 대한 의문이 생겨서 질문드립니다.
간단한 예로,
alias ls="ls -lh" 인 상태에서
# ls total 48K -rwx------ 1 parks users 12K 2008-11-12 20:52 a.out -rw------- 1 parks users 4.7K 2008-11-13 23:16 data.dat drwx------ 4 parks users 4.0K 2008-11-18 12:40 DIAGRAM -rwx------ 1 parks users 13K 2008-11-13 23:16 division -rw------- 1 parks users 2.3K 2008-11-13 23:16 division.cpp -rw------- 1 parks users 103 2008-11-13 23:07 Makefile
엘리어스 확장이 당연히 되어지지만,
<Makefile> all: ls ... <span>ls: ls</span> ...
Makefile 을 위처럼 만들고,
<span># make ls</span> 를 수행하면, a.out data.dat DIAGRAM division division.cpp Makefile
alias 확장된 ls 가 아니라,
깨끗한상태(?!) 의 ls 가 사용되는 것을 볼 수 있습니다.
Makefile 내에서 alias 를 사용하고 싶은데,
어떤 방법으로 구현 가능할까요?
Forums:
정석적인 방밥으로는 되지 않는것 같군요
---------------------------------------------
svn + trac + my project --> success ???
---------------------------------------------
---------------------------------------------
git init
git add .
git commit -am "project init"
---------------------------------------------
댓글 달기