aboutsummaryrefslogtreecommitdiffhomepage
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile45
1 files changed, 29 insertions, 16 deletions
diff --git a/makefile b/makefile
index f34bb0b..498c45e 100644
--- a/makefile
+++ b/makefile
@@ -39,6 +39,7 @@ PRG_SRC=$(PRG_NAME).d
PRG_SRCDIR=./src
PRG_BIN=$(PRG_NAME)
PRG_BINDIR=./bin
+PRG_DOCDIR=./docs
# ORG
ORG_VERSION=20160725
EMACSLISP=/usr/share/emacs/site-lisp
@@ -64,35 +65,42 @@ debug_dub: $(PRG_SRCDIR)/$(PRG_SRC)
$(DUB) $(DUB_FLAGS)$(DC) $(DUB_FLAGS_DEBUG)
# dmd
dub_dmd_release: expunge skel tangle
- $(DUB) $(DUB_FLAGS)dmd --config=sdp-release
+ $(DUB) --config=sdp-release
dub_dmd_release_stamp: clean_src skel tangle
- $(DUB) $(DUB_FLAGS)dmd --config=sdp-dmd
+ $(DUB) --config=sdp-dmd
dub_dmd_test_release: tangle
- $(DUB) $(DUB_FLAGS)dmd --config=sdp-dmd
+ $(DUB) --config=sdp-dmd
dub_dmd_debug: tangle
- $(DUB) $(DUB_FLAGS)dmd --config=sdp-debug-dmd
+ $(DUB) --config=sdp-debug-dmd
+dub_dmd_debug_unittest: tangle
+ $(DUB) --config=sdp-debug-unittest-dmd
+dub_dmd_debug_docs: clean_docs tangle
+ $(DUB) --config=sdp-debug-docs-dmd
dub_dmd_debug_clean: tangle
- $(DUB) $(DUB_FLAGS)dmd --config=sdp-debug-clean
+ $(DUB) --config=sdp-debug-clean
dub_dmd_tmp: tangle
- $(DUB) $(DUB_FLAGS)dmd --config=sdp-tmp
+ $(DUB) --config=sdp-tmp
dub_dmd_debug_src:
- $(DUB) $(DUB_FLAGS)dmd --config=sdp-debug
+ $(DUB) --config=sdp-debug
# ldc2
dub_ldc_release: expunge skel tangle
- $(DUB) $(DUB_FLAGS)ldc2 --config=sdp-release
+ $(DUB) --config=sdp-release
dub_ldc_release_stamp: clean_src skel tangle
- $(DUB) $(DUB_FLAGS)ldc2 --config=sdp-ldc
+ $(DUB) --config=sdp-ldc
dub_ldc_test_release: tangle
- $(DUB) $(DUB_FLAGS)ldc2 --config=sdp-ldc
+ $(DUB) --config=sdp-ldc
dub_ldc_debug: tangle
- $(DUB) $(DUB_FLAGS)ldc2 --config=sdp-debug-ldc
+ $(DUB) --config=sdp-debug-ldc
+dub_ldc_debug_unittest: tangle
+ $(DUB) --config=sdp-debug-unittest-ldc
+dub_ldc_debug_docs: clean_docs tangle
+ $(DUB) --config=sdp-debug-docs-ldc
dub_ldc_debug_clean: tangle
- $(DUB) $(DUB_FLAGS)ldc2 --config=sdp-debug-clean
+ $(DUB) --config=sdp-debug-clean
dub_ldc_tmp: tangle
- $(DUB) $(DUB_FLAGS)ldc2 --config=sdp-tmp
+ $(DUB) --config=sdp-tmp
dub_ldc_debug_src:
- $(DUB) $(DUB_FLAGS)ldc2 --config=sdp-debug
-# test releases
+ $(DUB) --config=sdp-debug
dub_release_test_dmd: tangle dub_dmd_release_test
dub_release_test_ldc: tangle dub_ldc_release_test
rdmd: $(PRG_SRCDIR)/$(PRG_SRC)
@@ -158,10 +166,15 @@ clean_src:
rm -f $(PRG_SRCDIR)/*; \
rm -rf $(PRG_SRCDIR)/$(PRG_NAME); \
+clean_docs:
+ rm -rf $(PRG_DOCDIR)
+
expunge:
+ rm -f dub.selections.json; \
rm -f $(PRG_SRCDIR)/*; \
rm -rf $(PRG_SRCDIR)/$(PRG_NAME); \
- rm -rf $(PRG_BINDIR);
+ rm -rf $(PRG_BINDIR); \
+ rm -rf $(PRG_DOCDIR);
distclean: expunge