Artifact Content
Not logged in

Artifact 54d2b4a8056c44218a46b4dbbe23dfc59eb2f5be


.PHONY : all windows doc

DC=dmd
DC_OPT=-O -release -inline
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)