From b1477105319de37088743c4c3ffae7c871189864 Mon Sep 17 00:00:00 2001 From: Louie S Date: Fri, 29 Dec 2023 14:45:35 -0500 Subject: Watched through ch. 7 --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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/ -- cgit