Hi all,
I am facing a rather strange problem with make. My make file contains:
all: item1 item2
item1: dep1 dep2
dep1:
    @echo
    cd $(HOME)/apps; /bin/rm -f $(D_ALL_OBJECTS) 
    cd $(SRCHOME)/fusionapps; make -k -f $(SOMEMAKEFILE) $(D_ALL_OBJECTS)
    @echo
dep2:
    @echo
    cd $(HOME)/apps; /bin/rm -f $(D2_ALL_OBJECTS) 
    cd $(SRCHOME)/fusionapps; make -k -f $(SOMEMAKEFILE) $(D2_ALL_OBJECTS)
    @echo
item2: ...
.....
Now, "make -f Makefile item1" works, but when I try "make -f Makefile all" it doesn't work. Do you people see any problems in my makefile?
Thanks
Addendum:
Well, it looks like make doesn't allow targets that have same name as some directory in the current level. Observation:
- "all" is a directory @ $(HOME)/apps
- all1: item1 item2works
- all: item1 item2doesn't work
So any target name having same name as a directory seems to fail (as in, fails to do anything useful).
I am pretty sure I am doing something absurdly wrong here.