diff --git a/examples/Makefile b/examples/Makefile index 65802ff..274ea48 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,4 +1,4 @@ -dirs= creational structural +dirs= $(wildcard */.) cleandirs= $(dirs:%=clean-%) all: $(dirs) diff --git a/examples/behavioral/Makefile b/examples/behavioral/Makefile new file mode 100644 index 0000000..e553d6a --- /dev/null +++ b/examples/behavioral/Makefile @@ -0,0 +1,13 @@ +targets = $(basename $(wildcard *.cpp)) + +CXXFLAGS= -std=c++11 -g -Wall -Werror + +all: $(targets) + +$(targets): %: %.cpp + $(CXX) $(CXXFLAGS) -o $@ $^ + +clean: + $(RM) $(targets) + +.PHONY: all clean