File notes/Makefile changed (mode: 100644) (index f583f0c..486777c) |
... |
... |
$(FIG_PDF): $(FIG_SOURCE) |
51 |
51 |
pdf2svg $@ $(addsuffix .svg,$(basename $@)) |
pdf2svg $@ $(addsuffix .svg,$(basename $@)) |
52 |
52 |
# To understand this syntax, cf. https://www.gnu.org/software/make/manual/html_node/File-Name-Functions.html#File-Name-Functions |
# To understand this syntax, cf. https://www.gnu.org/software/make/manual/html_node/File-Name-Functions.html#File-Name-Functions |
53 |
53 |
|
|
54 |
|
### |
|
55 |
|
# Rule for the example.md file. |
|
56 |
|
### |
|
57 |
|
|
|
58 |
|
# Rule to all versions of the example file. |
|
59 |
|
|
|
60 |
|
example: example.md |
|
61 |
|
pandoc $(OPTIONSPANDOC) --default-image-extension=svg --css=style/style.css --toc-depth=1 --self-contained -o example.html $< |
|
62 |
|
pandoc $(OPTIONSPANDOC) --default-image-extension=svg -o example.odt $< |
|
63 |
|
pandoc $(OPTIONSPANDOC) --pdf-engine=xelatex --pdf-engine-opt=-shell-escape -V links-as-notes --default-image-extension=pdf -o example.pdf $< |
|
64 |
|
|
|
65 |
|
|
|
66 |
54 |
### |
### |
67 |
55 |
# Rule for the lecture notes. |
# Rule for the lecture notes. |
68 |
56 |
### |
### |
|
... |
... |
pdf: lectures_notes.md |
90 |
78 |
mediawiki: lectures_notes.md |
mediawiki: lectures_notes.md |
91 |
79 |
pandoc $(OPTIONSPANDOC) --default-image-extension=svg --to mediawiki -o lectures_notes.mw $< |
pandoc $(OPTIONSPANDOC) --default-image-extension=svg --to mediawiki -o lectures_notes.mw $< |
92 |
80 |
|
|
|
81 |
|
|
|
82 |
|
### |
|
83 |
|
# Rule for the example.md file, to test your installation. |
|
84 |
|
### |
|
85 |
|
|
|
86 |
|
example: example.md |
|
87 |
|
latexmk -silent -cd -pdf fig/er/abstract.tex fig/fd/course.tex fig/misc/schema_design.tex fig/rel_mod/actor.tex fig/uml/hand.tex |
|
88 |
|
pdf2svg fig/er/abstract.pdf fig/er/abstract.svg |
|
89 |
|
pdf2svg fig/fd/course.pdf fig/fd/course.svg |
|
90 |
|
pdf2svg fig/misc/schema_design.pdf fig/misc/schema_design.svg |
|
91 |
|
pdf2svg fig/rel_mod/actor.pdf fig/rel_mod/actor.svg |
|
92 |
|
pdf2svg fig/uml/hand.pdf fig/uml/hand.svg |
|
93 |
|
pandoc $(OPTIONSPANDOC) --default-image-extension=svg --css=style/style.css --toc-depth=1 --self-contained -o example.html $< |
|
94 |
|
pandoc $(OPTIONSPANDOC) --default-image-extension=svg -o example.odt $< |
|
95 |
|
pandoc $(OPTIONSPANDOC) --pdf-engine=xelatex --pdf-engine-opt=-shell-escape -V links-as-notes --default-image-extension=pdf -o example.pdf $< |
|
96 |
|
|
93 |
97 |
### |
### |
94 |
98 |
# Rule to compile a temporary file, for testing purposes |
# Rule to compile a temporary file, for testing purposes |
95 |
99 |
### |
### |
|
... |
... |
temp: temp.md |
99 |
103 |
pandoc $(OPTIONSPANDOC) --default-image-extension=svg -o temp.odt $< |
pandoc $(OPTIONSPANDOC) --default-image-extension=svg -o temp.odt $< |
100 |
104 |
pandoc $(OPTIONSPANDOC) --pdf-engine=xelatex --pdf-engine-opt=-shell-escape -V links-as-notes --default-image-extension=pdf -o temp.pdf $< |
pandoc $(OPTIONSPANDOC) --pdf-engine=xelatex --pdf-engine-opt=-shell-escape -V links-as-notes --default-image-extension=pdf -o temp.pdf $< |
101 |
105 |
|
|
102 |
|
|
|
103 |
|
### |
|
104 |
|
# Rule to compile the "auxiliary" files (readme, contrib, etc.). |
|
105 |
|
### |
|
106 |
|
|
|
107 |
|
OPTIONSPANDOCAUX:= -s --self-contained --toc --filter pandoc-numbering --filter pandoc-citeproc -M date="$$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" |
|
108 |
|
|
|
109 |
|
readme: ../README.md |
|
110 |
|
pandoc ../README.md $(OPTIONSPANDOCAUX) --css=style/style.css -o ../README.html |
|
111 |
|
|
|
112 |
|
contrib: ../CONTRIB.md |
|
113 |
|
pandoc ../CONTRIB.md $(OPTIONSPANDOCAUX) --css=style/style.css -o ../CONTRIB.html |
|
114 |
|
|
|
115 |
|
bug: ../KNOWN_BUGS.md |
|
116 |
|
pandoc ../KNOWN_BUGS.md $(OPTIONSPANDOCAUX) --css=style/style.css -o ../KNOWN_BUGS.html |
|
117 |
|
|
|
118 |
|
license: ../LICENSE.md |
|
119 |
|
pandoc ../LICENSE.md $(OPTIONSPANDOCAUX) -o ../LICENSE.html |
|
120 |
|
|
|
121 |
|
install: ../install/INSTALL.md |
|
122 |
|
pandoc ../install/INSTALL.md $(OPTIONSPANDOCAUX) --css=../notes/style/style.css -o ../install/INSTALL.html |
|
123 |
|
|
|
124 |
|
# "Phony" rule to compile all the auxiliary files. |
|
125 |
|
.PHONY: aux |
|
126 |
|
aux: readme contrib bug license install |
|
127 |
|
|
|
128 |
106 |
# "Phony" rule to compile all three versions (html, odt, pdf) of the document and the "auxiliary" files (readme, contrib, licence and known_bugs, instalation guides). |
# "Phony" rule to compile all three versions (html, odt, pdf) of the document and the "auxiliary" files (readme, contrib, licence and known_bugs, instalation guides). |
129 |
107 |
|
|
130 |
108 |
.PHONY: all |
.PHONY: all |
131 |
109 |
all: pdf odt html aux |
all: pdf odt html aux |
132 |
110 |
|
|
133 |
|
### |
|
134 |
|
# "Phony" rule to publish the compiled lecture notes and the auxiliary files to the website. |
|
135 |
|
## |
|
136 |
|
|
|
137 |
|
.PHONY: push |
|
138 |
|
push: |
|
139 |
|
cp lectures_notes.pdf ~/travail/upload/site/spots/db/ln/CSCI_3410_lecture_notes.pdf |
|
140 |
|
cp lectures_notes.html ~/travail/upload/site/spots/db/ln/CSCI_3410_lecture_notes.html |
|
141 |
|
cp lectures_notes.odt ~/travail/upload/site/spots/db/ln/CSCI_3410_lecture_notes.odt |
|
142 |
|
cp ../README.html ~/travail/upload/site/spots/db/ln/README.html |
|
143 |
|
cp ../CONTRIB.html ~/travail/upload/site/spots/db/ln/CONTRIB.html |
|
144 |
|
cp ../KNOWN_BUGS.html ~/travail/upload/site/spots/db/ln/KNOWN_BUGS.html |
|
145 |
|
cp ../LICENSE.html ~/travail/upload/site/spots/db/ln/LICENSE.html |
|
146 |
|
cp ../install/INSTALL.html ~/travail/upload/site/spots/db/ln/install/INSTALL.html |
|
147 |
|
|
|
148 |
|
## |
|
149 |
|
# "Phony" rule to remove the temporary files. |
|
150 |
|
## |
|
151 |
|
|
|
152 |
|
.PHONY: clean |
|
153 |
|
clean: |
|
154 |
|
rm -f lectures_notes.pdf lectures_notes.odt lectures_notes.html |
|
155 |
|
rm -f temp.html temp.pdf temp.odt temp.tex |
|
156 |
|
rm -f ../*.html |
|
157 |
|
find fig/*/ -type f -not -name '*.tex' -and -not -name '*.def' -and -not -name '*.sty' -delete |
|
158 |
|
# Every file that does not have the extension .tex or the extension .def is removed from all the folders in fig. |
|
159 |
|
|
|
160 |
111 |
# "Phony" rule to indent properly the latex files |
# "Phony" rule to indent properly the latex files |
161 |
112 |
#.PHONY: clean_latex $(FIG_SOURCE) |
#.PHONY: clean_latex $(FIG_SOURCE) |
162 |
113 |
#clean_latex: $(FIG_SOURCE) |
#clean_latex: $(FIG_SOURCE) |
|
... |
... |
clean: |
172 |
123 |
clean_java: $(JAVA_CODE) |
clean_java: $(JAVA_CODE) |
173 |
124 |
$(JAVA_CODE): |
$(JAVA_CODE): |
174 |
125 |
java -jar lib/google-java-format-1.7-all-deps.jar -i $@ |
java -jar lib/google-java-format-1.7-all-deps.jar -i $@ |
|
126 |
|
|
|
127 |
|
### |
|
128 |
|
# Rules to call makefile from parent directory. |
|
129 |
|
### |
|
130 |
|
|
|
131 |
|
aux: |
|
132 |
|
@make -C ../ aux |
|
133 |
|
clean: |
|
134 |
|
@make -C ../ clean |
|
135 |
|
push: |
|
136 |
|
@make -C ../ push |