Skip to content

Commit

Permalink
Add html target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Apr 30, 2020
1 parent 59273ca commit 64208b9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default: pdf
# PDF
PDF_SOURCE = README.md
PDF_NAME = tobanteAudio-JUCE-Cookbook.pdf
PDF_OUTPUT_DIR = dist
DIST_DIR = dist

# JUCE generated
BUILD_DIR = Builds
Expand All @@ -17,16 +17,21 @@ GL_MODEL_PATH = opengl/opengl-model

.PHONY: pdf
pdf:
mkdir -p $(PDF_OUTPUT_DIR)
gitbook pdf . $(PDF_OUTPUT_DIR)/$(PDF_NAME)
mkdir -p $(DIST_DIR)
gitbook pdf . $(DIST_DIR)/$(PDF_NAME)

.PHONY: html
html:
mkdir -p $(DIST_DIR)
gitbook build . $(DIST_DIR)/html

.PHONY: dev
dev:
gitbook serve --debug

.PHONY: clean
clean:
rm -rf $(PDF_OUTPUT_DIR)
rm -rf $(DIST_DIR)
rm -rf _book

.PHONY: stats
Expand Down

0 comments on commit 64208b9

Please sign in to comment.