mirror of
https://github.com/iandinwoodie/cpp-design-patterns-for-humans.git
synced 2025-12-17 04:24:40 +03:00
Added top-level makefile for ease of building and cleaning.
This commit is contained in:
16
examples/Makefile
Normal file
16
examples/Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
dirs= creational
|
||||
cleandirs= $(dirs:%=clean-%)
|
||||
|
||||
all: $(dirs)
|
||||
|
||||
$(dirs):
|
||||
$(MAKE) -C $@
|
||||
|
||||
clean: $(cleandirs)
|
||||
|
||||
$(cleandirs):
|
||||
$(MAKE) -C $(@:clean-%=%) clean
|
||||
|
||||
.PHONY: subdirs $(dirs)
|
||||
.PHONY: subdirs $(cleandirs)
|
||||
.PHONY: all clean
|
||||
@@ -9,3 +9,5 @@ $(targets): %: %.cpp
|
||||
|
||||
clean:
|
||||
$(RM) $(targets)
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
Reference in New Issue
Block a user