So this is what I have:
SUBDIRS = src/lib/ResourceManager
all: $(SUBDIRS)
$(SUBDIRS):
make install -C $@
I am trying to execute the Makefile in src/lib/ResourceManager
when I run make
but it does not execute.
What am I doing wrong?
You must declare SUBDIRS as a .PHONY target as the sub-directory obviously always exists; otherwise it won’t be built.
SUBDIRS = src/lib/ResourceManager
.PHONY: all $(SUBDIRS)
all: $(SUBDIRS)
$(SUBDIRS):
make install -C $@
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments