Skip to content

Commit

Permalink
separate kindle and pdf targets
Browse files Browse the repository at this point in the history
- make `docs` and `html` default
  • Loading branch information
MartinNowak committed Apr 6, 2014
1 parent e9f4db9 commit b3ffdec
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions posix.mak
Expand Up @@ -150,12 +150,17 @@ $(DOC_OUTPUT_DIR)/dmd-%.html : %.ddoc dcompiler.dd $(DDOC)
# Rulez
################################################################################

all : phobos-prerelease druntime-prerelease druntime-release phobos-release \
html ${DOC_OUTPUT_DIR}/dlangspec.mobi ${DOC_OUTPUT_DIR}/dlangspec.pdf \
all : docs html

docs : phobos-prerelease druntime-prerelease druntime-release phobos-release \
dpl-docs apidocs-release apidocs-prerelease

html : $(ALL_FILES)

kindle : ${DOC_OUTPUT_DIR}/dlangspec.mobi

pdf : ${DOC_OUTPUT_DIR}/dlangspec.pdf

$(DOC_OUTPUT_DIR)/sitemap.html : $(ALL_FILES_BUT_SITEMAP)
cp -f sitemap-template.dd sitemap.dd
(true $(foreach F, $(TARGETS), \
Expand All @@ -174,7 +179,7 @@ clean:
rm -f docs.json docs-prerelease.json
@echo You should issue manually: rm -rf ${DMD_DIR}-${LATEST} ${DRUNTIME_DIR}-${LATEST} ${PHOBOS_DIR}-${LATEST}

rsync : all
rsync : docs html kindle pdf
rsync -avz $(DOC_OUTPUT_DIR)/ d-programming@digitalmars.com:data/

rsync-only :
Expand Down

0 comments on commit b3ffdec

Please sign in to comment.