summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-12-29 15:45:39 -0500
committerLouie S <louie@example.com>2023-12-29 15:45:39 -0500
commitb75ce875030134d21d2ede398457b7c1910b11bf (patch)
treebbdddae5548ae9e4b677b513fa4653446730c9ce /Makefile
parentb1477105319de37088743c4c3ffae7c871189864 (diff)
Watched through ch. 9
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