# Makefile for d major

# build command
BUD = bud

# build flags
BUDFLAGS = -nodef -gui:4.0

# dmd compiler flags
DFLAGS = -g -debug -unittest -version=MBCS
#DFLAGS = -release -inline -O

# main target source
ALL_SOURCE = main.d
DOCUMENT_SOURCE = index.d html.ddoc

all:
	$(BUD) $(BUDFLAGS) $(DFLAGS) $(ALL_SOURCE)

document:
	$(BUD) $(BUDFLAGS) -full -nolink $(DFLAGS) -o- -D $(ALL_SOURCE) $(DOCUMENT_SOURCE)

clean:
	$(BUD) $(BUDFLAGS) -full -cleanup $(DFLAGS) $(ALL_SOURCE)
