diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -78,6 +78,8 @@ data/sisudir/media/text/through_the_looking_glass.lewis_carroll.sst \ data/sisudir/media/text/two_bits.christopher_kelty.sst \ data/sisudir/media/text/un_contracts_international_sale_of_goods_convention_1980.sst \ data/sisudir/media/text/viral_spiral.david_bollier.sst +dub_upgrade: + $(DUB) upgrade default: ldc markup_samples: find data/pod -name pod.manifest | cut -f 1-3 -d / | sort; \ @@ -89,26 +91,28 @@ markup_dir_samples: all: dmd ldc gdc all_ver: dmd_ver ldc_ver gdc_ver all_debug: dmd_debug gdc_debug ldc_debug -meson: - rm -r build && mkdir build +meson: dub_upgrade + rm -r build; mkdir build meson --buildtype=debugoptimized build ninja -C build + notify-send -t 0 'D meson build ldc compiled test release executable ready' 'spine' mesonredo: - rm -r build && mkdir build + rm -r build; mkdir build meson --buildtype=debugoptimized build ninja -C build -mesonclean: clean skel tangle +mesonclean: clean skel tangle dub_upgrade meson --buildtype=debugoptimized build ninja -C build all_clean: clean tangle dmd ldc gdc all_ver_clean: clean tangle dmd_ver ldc_ver gdc_ver all_debug_ver: dmd_debug_ver gdc_debug_ver ldc_debug_ver all_debug_clean_ver: clean tangle dmd_debug_ver gdc_debug_ver ldc_debug_ver -dmd: +dmd: dub_upgrade $(DUB) --compiler=dmd --config=dmd -b release + notify-send -t 0 'D dmd compiled test release executable ready' 'spine-dmd' dmd_debug: $(DUB) --compiler=dmd --config=dmd -b debug -dmd_ver: +dmd_ver: dub_upgrade $(DUB) --compiler=dmd --config=dmd-version mv bin/spine-dmd-ver bin-archive/spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-dmd notify-send -t 0 'D dmd compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-dmd' @@ -120,11 +124,12 @@ dmd_rel_tangle: tangle dmd_rel_expunge_tangle: expunge skel tangle dmd_rel_tangle dmd_debug_tangle: tangle $(DUB) --compiler=dmd --config=spine-dmd-debug -gdc: +gdc: dub_upgrade $(DUB) --compiler=gdc --config=gdc -b release + notify-send -t 0 'D gdc compiled test release executable ready' 'spine-gdc' gdc_debug: $(DUB) --compiler=gdc --config=gdc -b debug -gdc_ver: +gdc_ver: dub_upgrade $(DUB) --compiler=gdc --config=gdc-version mv bin/spine-gdc-ver bin-archive/spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-gdc notify-send -t 0 'D gdc compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-gdc' @@ -136,11 +141,12 @@ gdc_rel_tangle: tangle gdc_rel_expunge_tangle: expunge skel tangle gdc_rel_tangle gdc_debug_tangle: tangle $(DUB) --compiler=gdc --config=spine-gdc-debug -ldc: +ldc: dub_upgrade $(DUB) --compiler=ldc2 --config=ldc -b release + notify-send -t 0 'D ldc compiled test release executable ready' 'spine-ldc' ldc_debug: $(DUB) --compiler=ldc2 --config=ldc -b debug -ldc_ver: +ldc_ver: dub_upgrade $(DUB) --compiler=ldc2 --config=ldc-version mv bin/spine-ldc-ver bin-archive/spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-ldc notify-send -t 0 'D ldc2 compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-ldc' |