summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Wey2011-10-07 00:09:30 +0200
committerMike Wey2011-10-07 00:09:30 +0200
commitace9cc9b77804c4ebc0d372381e41799b58850c5 (patch)
tree0e50e70235ec332175b02e20d5b10d0996d74294
parentc471365ed1023db4784d10118c1de8db45230c5f (diff)
Add the unittests to the makefile.
-rw-r--r--windows.mak12
1 files changed, 10 insertions, 2 deletions
diff --git a/windows.mak b/windows.mak
index bc96f15..12aa536 100644
--- a/windows.mak
+++ b/windows.mak
@@ -213,8 +213,8 @@ DOCS= \
docs\c\xmlTree.html \
docs\c\xwindow.html
-html: doc
-doc: $(DOCS)
+html: docs
+docs: $(DOCS)
docs\Array.html: dmagick\Array.d
$(DMD) $** $(DFLAGS) -c -o- -I. docs\dmagick.ddoc -Df$@
@@ -521,6 +521,14 @@ docs\c\xwindow.html: dmagick\c\xwindow.d
$(LIBNAME): $(SOURCE)
$(DMD) -lib -of$(LIBNAME) $(DFLAGS) $(SOURCE)
+unittest: stubmain.d $(SOURCE)
+ $(DMD) -of$@.exe -unittest $(DFLAGS) $** MagickCore.lib
+ unittest
+
+stubmain.d:
+ echo void main(){} > $@
+
clean:
del $(LIBNAME)
del $(DOCS)
+ del stubmain.d unittest.obj unittest.exe