summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-12-29 14:45:35 -0500
committerLouie S <louie@example.com>2023-12-29 14:45:35 -0500
commitb1477105319de37088743c4c3ffae7c871189864 (patch)
tree2532e3283faf43f297a4764aef4d04cbdd1e179a /Makefile
Watched through ch. 7
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d34007c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+MARKC=marked
+
+.PHONY: all
+all: index.html docker_cheat_sheet.html yaml_cheat_sheet.html
+
+index.html: index.md docker_cheat_sheet.html yaml_cheat_sheet.html
+ $(MARKC) -o $@ $<
+
+docker_cheat_sheet.html: docker_cheat_sheet.md yaml_cheat_sheet.html
+ $(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
+ 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
+ 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
+
+.PHONY: clean
+clean:
+ rm -f *html
+
+.PHONY: dist-clean
+dist-clean: clean
+ rm -rf dist/