-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 929 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 929 Bytes
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
all:
mkdir -p build
mkdir -p build/gtk
mkdir -p build/fltk
mkdir -p build/swing
# Compile each benchmark code one at a time so their implementation of the global macros will not override the other ones
while read in; do echo $$in > src/benchmark_imports.lit && ./generate_main.sh && literate/lit --tangle src/main.lit --out-dir build/; done < src/imports.txt
# Generate full documentation
cat src/imports.txt > src/benchmark_imports.lit
./generate_main.sh
literate/lit --weave src/main.lit --out-dir build/
cp -R images build/_book/
# Compile each app
cd build/gtk/ && make
cd build/fltk/ && make -i
cd build/swing/ && make
presentation:
mkdir -p presentation
pandoc --slide-level 2 -s presentation.md -t beamer -o presentation/presentation.pdf
preview_presentation:
make clean && make presentation && zathura presentation/presentation.pdf
clean:
rm -f -R presentation
rm -f -R build
rm -f src/main.lit