%% "Daniel Olivier" <[EMAIL PROTECTED]> writes:
do> It builds fine the first time, but for some reason. If I attempt
do> to make a second time, because the obj_dir directory (dependency)
do> is newer than the (target) obj1.o, the rule is re-run
Are you sure this is why it's re-run? Does us
"Daniel Olivier" <[EMAIL PROTECTED]> writes:
> It builds fine the first time, but for some reason. If I attempt to make a
> second time, because the obj_dir directory (dependency) is newer than the
> (target) obj1.o, the rule is re-run, causing the "compiler" (touch in this
> simplified case) and
Is this supposed to work?
obj_dir lib_dir :
[ -d $@ ] || mkdir -p $@
obj_dir/%.o : src_dir/%.c | obj_dir
# [ -d obj_dir ] || mkdir -p obj_dir # this does work
touch $@
lib_dir/%.b : obj_dir/obj1.o obj_dir/obj2.o | lib_dir
touch $@
obj_dir/obj2.o : src_dir/obj2.c
ob