From d0728d5025e00b0e0d7f0a3b637f4087dedc4ceb Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Thu, 29 Apr 2021 20:37:59 +0300 Subject: [PATCH] Add makefile for simplified running of examples --- makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..1006e5b --- /dev/null +++ b/makefile @@ -0,0 +1,52 @@ +.PHONY: build +.PHONY: test + +build: + dub build --build=release + +test: + dub test + +clean: + dub clean + +run-examples: run-annotationsExample \ + run-applicationContextExample \ + run-arrayCompletionExample \ + run-constructorInjectionExample \ + run-injectionInitializerExample \ + run-postConstructorPreDestructorExample \ + run-qualifiersExample \ + run-quickstartExample \ + run-registerOnResolveExample \ + run-valueInjectionExample + +run-annotationsExample: + dub run --build=release --config=annotationsExample + +run-applicationContextExample: + dub run --build=release --config=applicationContextExample + +run-arrayCompletionExample: + dub run --build=release --config=arrayCompletionExample + +run-constructorInjectionExample: + dub run --build=release --config=constructorInjectionExample + +run-injectionInitializerExample: + dub run --build=release --config=injectionInitializerExample + +run-postConstructorPreDestructorExample: + dub run --build=release --config=postConstructorPreDestructorExample + +run-qualifiersExample: + dub run --build=release --config=qualifiersExample + +run-quickstartExample: + dub run --build=release --config=quickstartExample + +run-registerOnResolveExample: + dub run --build=release --config=registerOnResolveExample + +run-valueInjectionExample: + dub run --build=release --config=valueInjectionExample \ No newline at end of file