[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: Re: How to transfrom a.c dir1/b.c to -I. -I./dir1
From: |
PRC |
Subject: |
Re: Re: Re: How to transfrom a.c dir1/b.c to -I. -I./dir1 |
Date: |
Fri, 1 Aug 2008 19:39:31 +0800 |
>$ cat Makefile
>src = a.c dir1/b.c c.c dir2/d.c
>all:
> @echo $(src)
> @echo $(dir $(src))
> @echo $(patsubst %/,-I%,$(dir $(src)))
>$ make
>a.c dir1/b.c c.c dir2/d.c
>./ dir1/ ./ dir2/
>-I. -Idir1 -I. -Idir2
>$
>Do that process of breaking the goal down into steps and debugging it
>with a test makefile make sense?
>Philip Guenther
The script works well.
PRC