Add html doc build for dmd

This commit is contained in:
Andrei Alexandrescu 2016-01-14 23:45:41 -05:00
parent a540e39b75
commit 51d373ad64
2 changed files with 13 additions and 0 deletions

View file

@ -20,6 +20,9 @@ clean:
test:
$(QUIET)$(MAKE) -C test -f Makefile
html:
$(QUIET)$(MAKE) -C src -f posix.mak html
# Creates Exuberant Ctags tags file
tags: posix.mak $(ECTAGS_FILES)
ctags --sort=yes --links=no --excmd=number --languages=$(ECTAGS_LANGS) \

View file

@ -477,4 +477,14 @@ zip:
#############################
ifneq ($(DOCDIR),)
html: $(DOCDIR)/.generated
$(DOCDIR)/.generated: $(DMD_SRCS) $(ROOT_SRCS) $(HOST_DMD_PATH)
$(HOST_DMD_RUN) -of- $(MODEL_FLAG) -J. -c -Dd$(DOCDIR)\
$(DFLAGS) $(DOCFMT) $(DMD_SRCS) $(ROOT_SRCS)
touch $@
endif
######################################################
.DELETE_ON_ERROR: # GNU Make directive (delete output files on error)