9d5b420de502e57af139e7b1d37c069e58a9d815
David Blume first commit

David Blume authored 8 years ago

1) SUBDIRS=my_lib product
2) LIBDIR=lib
3) 
David Blume Add a debug target for test...

David Blume authored 8 years ago

4) .PHONY: clean debug subdirs $(SUBDIRS)
David Blume first commit

David Blume authored 8 years ago

5) 
6) subdirs: $(SUBDIRS)
7) 
8) $(SUBDIRS):
9) 	$(MAKE) -C $@
10) 
11) all: $(LIBDIR) subdirs
David Blume Added a routine to cause a...

David Blume authored 8 years ago

12) 	for dir in $(SUBDIRS); do \
13) 		$(MAKE) -C $$dir \
14) 	done
David Blume first commit

David Blume authored 8 years ago

15) 
David Blume Add a debug target for test...

David Blume authored 8 years ago

16) debug:
17) 	for dir in $(SUBDIRS); do \
David Blume Added a routine to cause a...

David Blume authored 8 years ago

18) 		$(MAKE) -C $$dir $(MAKECMDGOALS); \
David Blume Add a debug target for test...

David Blume authored 8 years ago

19) 	done
20) 
David Blume first commit

David Blume authored 8 years ago

21) product: my_lib
22) 
23) $(LIBDIR):
24) 	mkdir $@
25) 
26) clean:
27) 	for dir in $(SUBDIRS); do \
David Blume Added a routine to cause a...

David Blume authored 8 years ago

28) 		$(MAKE) -C $$dir $(MAKECMDGOALS); \