David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
330a60a
Branches
Tags
c++11
main
start
testcode.git
Makefile
Minor edit to Makefile to support explicit 'all' target.
dblume
commited
330a60a
at 2021-11-03 23:21:53
Makefile
Blame
History
Raw
SUBDIRS=my_lib product LIBDIR=lib .PHONY: clean debug subdirs $(SUBDIRS) subdirs: $(SUBDIRS) $(SUBDIRS): $(MAKE) -C $@ all: $(LIBDIR) subdirs for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir $(MAKECMDGOALS); \ done debug: for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir $(MAKECMDGOALS); \ done product: my_lib $(LIBDIR): mkdir $@ clean: for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir $(MAKECMDGOALS); \ done