Artifact b49249a409a1c2fd5817c969ca7263b888a52c47
.PHONY : all windows doc
DC=dmd
DC_OPT=-O -release
SRC = $(wildcard *.d polemy/*.d tricks/*.d)
posix:
$(DC) $(DC_OPT) -ofbin/polemy $(SRC)
windows:
$(DC) $(DC_OPT) -ofbin\\polemy $(SRC)
DOCDIR=doc
DDOC_FILES=$(DOCDIR)/candydoc/candy.ddoc $(DOCDIR)/candydoc/modules.ddoc
DDOC_OPT=-o- -D -Dddoc $(DDOC_FILES)
VPATH = . polemy tricks
$(DOCDIR)/%.html: %.d $(DDOC_FILES)
$(DC) $(DDOC_OPT) $<
$(DOCDIR)/%.html: %.dd $(DDOC_FILES)
$(DC) $(DDOC_OPT) $<
SRCB = $(notdir $(SRC))
SRCA = $(addprefix $(DOCDIR)/, $(SRCB))
DOCS = $(SRCA:.d=.html) $(DOCDIR)/index.html
doc: $(DOCS)