mirror of
https://github.com/semaphoreci/book-cicd-docker-kubernetes.git
synced 2026-07-11 01:09:18 +00:00
28 lines
637 B
Makefile
28 lines
637 B
Makefile
BUILD = build
|
|
BOOKNAME = CICD_with_Docker_Kubernetes_Semaphore
|
|
TITLE = title.txt
|
|
CHAPTERS = chapters/01-introduction.md chapters/02-using-docker.md \
|
|
chapters/03-kubernetes-deployment.md chapters/04-cicd-best-practices.md \
|
|
chapters/05-tutorial.md
|
|
|
|
all: book
|
|
|
|
book: pdf html #epub
|
|
|
|
clean:
|
|
rm -r $(BUILD)
|
|
|
|
pdf: $(BUILD)/pdf/$(BOOKNAME).pdf
|
|
|
|
html: $(BUILD)/html/$(BOOKNAME).html
|
|
|
|
$(BUILD)/pdf/$(BOOKNAME).pdf: $(TITLE) $(CHAPTERS)
|
|
mkdir -p $(BUILD)/pdf
|
|
pandoc -o $@ $^
|
|
|
|
$(BUILD)/html/$(BOOKNAME).html: $(TITLE) $(CHAPTERS)
|
|
mkdir -p $(BUILD)/html
|
|
pandoc $(TOC) --standalone --to=html5 -o $@ $^
|
|
|
|
.PHONY: all book clean pdf html #epub
|