Add makefile for simplified running of examples

This commit is contained in:
Mike Bierlee 2021-04-29 20:37:59 +03:00
parent 0ff0c5148f
commit d0728d5025

52
makefile Normal file
View file

@ -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