The general idea of โโwhat I'm trying to do can hopefully be summarized with this little script.
DIRS = dir1 dir2 dir3 dir4 ... OBJS = all: GENERATE_OBJECT_FILES GENERATE_OBJECT_FILES: for curr_dir in $(DIRS); \ do \ $(join $(OBJS), `ls $${curr_dir}/*.o`); \ done echo $(OBJS);
How could I execute this with a script in a Makefile?
source share