|
From: | Harvey Chapman |
Subject: | Re: A better way to perform substitution in make |
Date: | Mon, 20 Apr 2009 23:22:09 -0400 |
User-agent: | Postbox 1.0b11 (Macintosh/2009041623) |
Randy Kao wrote:
ALLFILES := $(shell find . -type f)
I did it this way: SRCS=$(shell find . -name "*.cpp" -or -name "*.c" | sed -e 's/^\.\///') Adjust accordingly.
EDITEDFILES := $(patsubst ./,,$(ALLFILES))
should be: EDITEDFILES := $(patsubst ./%,%,$(ALLFILES))
[Prev in Thread] | Current Thread | [Next in Thread] |