summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d34007c..4010311 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
MARKC=marked
+TARGETS=index.html docker_cheat_sheet.html kubernetes_cheat_sheet.html yaml_cheat_sheet.html
+
.PHONY: all
-all: index.html docker_cheat_sheet.html yaml_cheat_sheet.html
+all: $(TARGETS)
index.html: index.md docker_cheat_sheet.html yaml_cheat_sheet.html
$(MARKC) -o $@ $<
@@ -9,16 +11,19 @@ index.html: index.md docker_cheat_sheet.html yaml_cheat_sheet.html
docker_cheat_sheet.html: docker_cheat_sheet.md yaml_cheat_sheet.html
$(MARKC) -o $@ $<
+kubernetes_cheat_sheet.html: kubernetes_cheat_sheet.md
+ $(MARKC) -o $@ $<
+
yaml_cheat_sheet.html: yaml_cheat_sheet.md
$(MARKC) -o $@ $<
.PHONY: bdist
-bdist: index.html docker_cheat_sheet.html yaml_cheat_sheet.html
+bdist: $(TARGETS)
mkdir -p dist
tar -czf dist/docker_containers_and_kubernetes_fundamentals_personal_notes_$(shell date +%Y%m%d%H%M%S).tar.gz $^
.PHONY: sdist
-sdist: index.md docker_cheat_sheet.md yaml_cheat_sheet.md README
+sdist: index.md docker_cheat_sheet.md kubernetes_cheat_sheet.md yaml_cheat_sheet.md README
mkdir -p dist
tar -czf dist/docker_containers_and_kubernetes_fundamentals_personal_notes_$(shell date +%Y%m%d%H%M%S).src.tar.gz $^ Makefile