-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
37 lines (29 loc) · 784 Bytes
/
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
# this target prepares source/header files for distribution and then demos the example project
.PHONY: all
all: dist demo
.PHONY: dist
dist:
cp -f src/canvas.c include/
cp -f src/canvas.h include/
cp -f src/window.c include/
cp -f src/window.h include/
.PHONY: docs
docs: docs/index.html
docs/index.html: dist src/canvas.h src/window.h
cd src && doxygen Doxyfile
# below are targets which delegate to the test project's Makefile
.PHONY: clean
clean:
$(MAKE) -C test clean
.PHONY: populate-test-libs
populate-test-libs:
cp -f src/canvas.c test/lib/
cp -f src/canvas.h test/lib/
cp -f src/window.c test/lib/
cp -f src/window.h test/lib/
.PHONY: demo
demo: populate-test-libs
$(MAKE) -C test demo
.PHONY: test
test: populate-test-libs
$(MAKE) -C test build/index.html