summaryrefslogtreecommitdiff
path: root/Makefile
blob: e8ca9eae8e3137ed9972e7062bd29ca4ceaddc36 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
all : clean pdf

clean : clean1 clean2 clean3 cleanfinal

clean1 :
	rm -f assignments/1/README.pdf

clean2 :
	rm -f assignments/2/README.pdf

clean3 :
	rm -f assignments/3/README.pdf

cleanfinal :
	rm -f assignments/final/README.pdf

uml : uml1 uml2 uml3 umlfinal

uml1 :
	plantuml assignments/1/*.puml

uml2 :
	plantuml assignments/2/*.puml

uml3 :
	plantuml assignments/3/*.puml

umlfinal :
	plantuml assignments/final/*.puml
	convert assignments/final/module-1.png -resize 1024x768 assignments/final/module-1.png

pdf : pdf1 pdf2 pdf3 pdffinal

pdf1 :
	cd assignments/1 && pandoc --metadata title="COMP-378: Assignment 1 - mo khan (3431709)" --from=commonmark --to=html5 -s -o README.pdf README.md

pdf2 :
	cd assignments/2 && pandoc --metadata title="COMP-378: Assignment 2 - mo khan (3431709)" --from=commonmark --to=html5 -s -o README.pdf README.md

pdf3 :
	cd assignments/3 && pandoc --metadata title="COMP-378: Assignment 3 - mo khan (3431709)" --from=commonmark --to=html5 -s -o README.pdf README.md

pdffinal :
	#cd rvh && \
		#bundle exec erd --notation=bachman --orientation=vertical --filetype=dot --prepend_primary=true --inheritance --title="RVH ERD" && \
		#dot -Tpng erd.dot > erd.png && \
		#convert erd.png -resize 1024x768 resize_erd.png && \
		#rm erd.png && \
		#mv resize_erd.png erd.png
	#mv rvh/erd.png assignments/final/erd.png
	cd assignments/final && pandoc --metadata title="COMP-378: Final Project - mo khan (3431709)" --from=commonmark --to=html5 -s -o README.pdf README.md