linux - Makefile Anomaly: Invoke `make` and it appears to be running another makefile -
i have following makefile: objdirs = runtime/core/common runtime/core/graphic/symbolxlib runtime/core/map runtime/core/symboldictionary \ runtime/coreclient/runtimecorejava objs = $(wildcard $(objdirs:=/*.o)) targeta = libruntimecorejava.a targetd = libruntimecorejava.so targetd1 = $(targetd).1 targetd2 = $(targetd).1.0 targetd3 = $(targetd).1.0.0 ar = ar cqs link = g++ symlink = ln -f -s ldflags = -shared -wl,-soname,libruntimecorejava.so.1 : $(targetd) $(targeta) $(targetd) : $(objs) echo "building dynamic lib using "$(objs) #$(cxx) $(ldflags) $(objs) #$(symlink) $(targetd) $(targetd1) #$(symlink) $(targetd) $(targetd2) #$(symlink) $(targetd) $(targetd3) $(targeta) : $(objs) echo "building static lib using "$(objs) #$(ar) $(targeta) $(objs) when run make @ same level makefile appears call makefile unrelated one. i