summaryrefslogtreecommitdiff
path: root/Makefile
blob: 401031187c18a66b149f8ac09de4af9c083dbafa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
MARKC=marked

TARGETS=index.html docker_cheat_sheet.html kubernetes_cheat_sheet.html yaml_cheat_sheet.html

.PHONY: all
all: $(TARGETS)

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 $@ $<

kubernetes_cheat_sheet.html: kubernetes_cheat_sheet.md
	$(MARKC) -o $@ $<

yaml_cheat_sheet.html: yaml_cheat_sheet.md
	$(MARKC) -o $@ $<

.PHONY: bdist
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 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

.PHONY: clean
clean:
	rm -f *html

.PHONY: dist-clean
dist-clean: clean
	rm -rf dist/