From a50e9e135eaaa895d68b728c499f602abdc75a07 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 4 Sep 2019 14:28:59 -0400 Subject: make/build name versioned output differently --- dub.sdl | 7 +++++++ makefile | 12 ++++++------ org/dr_build_scaffold.org | 19 +++++++++++++------ 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/dub.sdl b/dub.sdl index 5b60fe0..b695132 100644 --- a/dub.sdl +++ b/dub.sdl @@ -34,6 +34,8 @@ buildType "dmd-release" { buildOptions "verbose" "releaseMode" "optimize" "inline" } configuration "dmd-version" { + dflags "-J=views" "-I=src/doc_reform" + buildOptions "verbose" "releaseMode" "optimize" "inline" targetName "doc-reform-dmd-ver" postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'doc-reform-dmd-ver'" } @@ -51,6 +53,8 @@ buildType "ldc-release" { buildOptions "verbose" "optimize" "inline" "releaseMode" } configuration "ldc-version" { + dflags "-O2" "-J=views" "-I=src/doc_reform" + buildOptions "verbose" "optimize" "inline" "releaseMode" targetName "doc-reform-ldc-ver" postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'doc-reform-ldc-ver'" } @@ -70,6 +74,9 @@ buildType "gdc-release" { buildOptions "verbose" "optimize" "inline" "releaseMode" } configuration "gdc-version" { + dflags "-O2" "-J=views" "-I=src/doc_reform" + lflags "-lz" + buildOptions "verbose" "optimize" "inline" "releaseMode" targetName "doc-reform-gdc-ver" postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'doc-reform-gdc-ver'" } diff --git a/makefile b/makefile index a229e25..d9a0f13 100644 --- a/makefile +++ b/makefile @@ -109,8 +109,8 @@ dmd_debug: $(DUB) --compiler=dmd --config=dmd -b debug dmd_ver: $(DUB) --compiler=dmd --config=dmd-version - mv bin/doc-reform-dmd-ver bin/doc-reform-dmd-$(PROJECT_VERSION) - notify-send -t 0 'D dmd compiled test release executable ready' 'doc-reform-dmd-$(PROJECT_VERSION)' + mv bin/doc-reform-dmd-ver bin/doc-reform-$(PROJECT_VERSION)-dmd + notify-send -t 0 'D dmd compiled test release executable ready' 'doc-reform-$(PROJECT_VERSION)-dmd' dmd_clean_ver: clean tangle dmd_ver dmd_rel: expunge skel tangle $(DUB) --compiler=dmd --config=doc-reform-release @@ -125,8 +125,8 @@ gdc_debug: $(DUB) --compiler=gdc --config=gdc -b debug gdc_ver: $(DUB) --compiler=gdc --config=gdc-version - mv bin/doc-reform-gdc-ver bin/doc-reform-gdc-$(PROJECT_VERSION) - notify-send -t 0 'D gdc compiled test release executable ready' 'doc-reform-gdc-$(PROJECT_VERSION)' + mv bin/doc-reform-gdc-ver bin/doc-reform-$(PROJECT_VERSION)-gdc + notify-send -t 0 'D gdc compiled test release executable ready' 'doc-reform-$(PROJECT_VERSION)-gdc' gdc_clean_ver: clean tangle gdc_ver gdc_rel: expunge skel tangle $(DUB) --compiler=gdc --config=doc-reform-release @@ -141,8 +141,8 @@ ldc_debug: $(DUB) --compiler=ldc2 --config=ldc -b debug ldc_ver: $(DUB) --compiler=ldc2 --config=ldc-version - mv bin/doc-reform-ldc-ver bin/doc-reform-ldc-$(PROJECT_VERSION) - notify-send -t 0 'D ldc2 compiled test release executable ready' 'doc-reform-ldc-$(PROJECT_VERSION)' + mv bin/doc-reform-ldc-ver bin/doc-reform-$(PROJECT_VERSION)-ldc + notify-send -t 0 'D ldc2 compiled test release executable ready' 'doc-reform-$(PROJECT_VERSION)-ldc' ldc_clean_ver: clean tangle ldc_ver ldc_rel: expunge skel tangle $(DUB) --compiler=ldc2 --config=doc-reform-release diff --git a/org/dr_build_scaffold.org b/org/dr_build_scaffold.org index 703e8ab..80969ad 100644 --- a/org/dr_build_scaffold.org +++ b/org/dr_build_scaffold.org @@ -253,8 +253,8 @@ dmd_debug: #+BEGIN_SRC makefile :tangle ../makefile dmd_ver: $(DUB) --compiler=dmd --config=dmd-version - mv bin/doc-reform-dmd-ver bin/doc-reform-dmd-$(PROJECT_VERSION) - notify-send -t 0 'D dmd compiled test release executable ready' 'doc-reform-dmd-$(PROJECT_VERSION)' + mv bin/doc-reform-dmd-ver bin/doc-reform-$(PROJECT_VERSION)-dmd + notify-send -t 0 'D dmd compiled test release executable ready' 'doc-reform-$(PROJECT_VERSION)-dmd' dmd_clean_ver: clean tangle dmd_ver #+END_SRC @@ -293,8 +293,8 @@ gdc_debug: #+BEGIN_SRC makefile :tangle ../makefile gdc_ver: $(DUB) --compiler=gdc --config=gdc-version - mv bin/doc-reform-gdc-ver bin/doc-reform-gdc-$(PROJECT_VERSION) - notify-send -t 0 'D gdc compiled test release executable ready' 'doc-reform-gdc-$(PROJECT_VERSION)' + mv bin/doc-reform-gdc-ver bin/doc-reform-$(PROJECT_VERSION)-gdc + notify-send -t 0 'D gdc compiled test release executable ready' 'doc-reform-$(PROJECT_VERSION)-gdc' gdc_clean_ver: clean tangle gdc_ver #+END_SRC @@ -333,8 +333,8 @@ ldc_debug: #+BEGIN_SRC makefile :tangle ../makefile ldc_ver: $(DUB) --compiler=ldc2 --config=ldc-version - mv bin/doc-reform-ldc-ver bin/doc-reform-ldc-$(PROJECT_VERSION) - notify-send -t 0 'D ldc2 compiled test release executable ready' 'doc-reform-ldc-$(PROJECT_VERSION)' + mv bin/doc-reform-ldc-ver bin/doc-reform-$(PROJECT_VERSION)-ldc + notify-send -t 0 'D ldc2 compiled test release executable ready' 'doc-reform-$(PROJECT_VERSION)-ldc' ldc_clean_ver: clean tangle ldc_ver #+END_SRC @@ -890,6 +890,8 @@ buildType "dmd-release" { buildOptions "verbose" "releaseMode" "optimize" "inline" } configuration "dmd-version" { + dflags "-J=views" "-I=src/doc_reform" + buildOptions "verbose" "releaseMode" "optimize" "inline" targetName "doc-reform-dmd-ver" postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'doc-reform-dmd-ver'" } @@ -915,6 +917,8 @@ buildType "ldc-release" { buildOptions "verbose" "optimize" "inline" "releaseMode" } configuration "ldc-version" { + dflags "-O2" "-J=views" "-I=src/doc_reform" + buildOptions "verbose" "optimize" "inline" "releaseMode" targetName "doc-reform-ldc-ver" postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'doc-reform-ldc-ver'" } @@ -942,6 +946,9 @@ buildType "gdc-release" { buildOptions "verbose" "optimize" "inline" "releaseMode" } configuration "gdc-version" { + dflags "-O2" "-J=views" "-I=src/doc_reform" + lflags "-lz" + buildOptions "verbose" "optimize" "inline" "releaseMode" targetName "doc-reform-gdc-ver" postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'doc-reform-gdc-ver'" } -- cgit v1.2.3