-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (31 loc) · 1.31 KB
/
Makefile
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
all : docs layout.jar
docs : manual/manual.pdf demoout/demo.pdf MarkdownTutorial.pdf
manual/manual.pdf: manual/manual.tex
cd manual; lualatex --interaction=nonstopmode manual.tex; cd ..
demoout/demo.pdf: demo/settings.properties layout.jar demo/000title.tex demo/010lipsum.tex
rm -rf demoout; mkdir demoout; java -jar layout.jar demo/
MarkdownTutorial.pdf : MarkdownTutorial.md
lualatex --interaction=nonstopmode --jobname=MarkdownTutorial \
\\input\\documentclass\{article\}\\usepackage\[\
definitionLists,html,fencedCode,mark\]\{markdown\}\
"\\usepackage{csquotes}\\MakeOuterQuote{\"}\\EnableQuotes"\
\\begin\{document\}\
\\markdownInput\{MarkdownTutorial.md\}\
\\end\{document\}
SRC_DIR := java/layout/src/
OUT_DIR := java/layout/out/production/
JAVA_SRCS := $(shell find java/layout/src -name '*.java')
#CLS := $(JAVA_SRCS:$(SRC_DIR)/%.java=$(OUT_DIR)/%.class)
layout.jar : classes
jar cef org.homelinux.rjlee.news.Layout layout.jar \
-C java/layout/resources/ META-INF/MANIFEST.MF \
-C ${OUT_DIR}/layout .
# Targets that do not produce output files
.PHONY: classes clean
classes : $(JAVA_SRCS)
mkdir -p $(OUT_DIR)/layout; \
javac -g:none -nowarn -d $(OUT_DIR)/layout $(JAVA_SRCS)
clean:
rm -rf $(OUT_DIR)/* layout.jar \
manual/manual.pdf out/demo.pdf MarkdownTutorial.pdf \
*.log *.aux *.markdown.lua *~