From c64ceeb60f1dc9ca71c5465cfe5ba2fc3c67a6e4 Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Wed, 14 Jan 2015 20:56:00 +0100 Subject: [PATCH] Fix makefile dependencies --- makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index b4fccf0..deede85 100644 --- a/makefile +++ b/makefile @@ -3,8 +3,9 @@ INCLUDE_PATHS := -Ilibdparse/src DMD_FLAGS := -g -w $(INCLUDE_PATHS) LDC_FLAGS := -g -w -oq $(INCLUDE_PATHS) -dmd: $(SRC) - dmd $(DMD_FLAGS) $(SRC) -ofbin/dfmt +.PHONY: dmd ldc test + +dmd: bin/dfmt ldc: $(SRC) ldc2 $(LDC_FLAGS) $(SRC) -ofbin/dfmt @@ -12,3 +13,7 @@ ldc: $(SRC) test: bin/dfmt cd tests && ./test.sh + +bin/dfmt: $(SRC) + dmd $(DMD_FLAGS) $(SRC) -ofbin/dfmt +