blob: 1cbae108255675b89113ab37a42f43d47ffaa453 (
plain) (
blame)
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
|
CC := gcc-13
CPPFLAGS :=
CFLAGS := -Wall
LDFLAGS :=
all:
##############
# Programs #
##############
SRCS := mandelbrot.c plotting.c
OBJS := $(SRC:.c=.o)
OBJS_DIR := build/objs
build/mandelbrot: $(addprefix $(OBJS_DIR)/, $(OBJS))
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
$(OBJS_DIR)/%.o: src/%.c $(OBJS_DIR)
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
$(OBJS_DIR):
mkdir -p $@
################
# Animations #
################
##################
# Presentation #
##################
presentation: presentation/presentation.html
presentation/presentation.html: presentation/presentation.md
pandoc -t revealjs -so $@ $<
##############
# Analysis #
##############
analysis: analysis/analysis.html
analysis/analysis.html: analysis/analysis.Rmd # TODO: add compile command
clean:
rm -rf presentation/presentation.html analysis/analysis.html
.PHONY: all presentation analysis clean
|