Artifact 300aa94f95ae54a33a705f54013e5333750d1c8a
.PHONY : all windows doc
DC=dmd
DC_OPT=-O -release
SRC = $(wildcard *.d polemy/*.d tricks/*.d)
all:
$(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)