blob: 8dca080625dab98ccc084509028eeeb4c23d4f8e (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
|
.PHONY: all
all: setup
$(MAKE) -f scripts/makefile
# this kicks all unrecognised targets to the client script.
# note that trying to compile individual files, e.g.
#
# make kernel.elf
#
# will not work, you would need
#
# make -f scripts/makefile kernel.elf
#
# instead
.DEFAULT: setup
$(MAKE) -f scripts/makefile $<
.PHONY:
setup:
@echo -n > deps.mk
@./scripts/gen-deps -p POSTHASTE -c COMPILE_POSTHASTE -b posthaste \
"${POSTHASTE_SOURCES}"
POSTHASTE_SOURCES :=
CLEANUP := build deps.mk posthaste
CLEANUP_CMD :=
include src/source.mk
.PHONY: format
format:
find src include -iname '*.[ch]' |\
xargs uncrustify -c uncrustify.conf --no-backup -F -
.PHONY: license
license:
find src include -iname '*.[ch]' |\
xargs ./scripts/license
.PHONY: docs
docs:
find src include -iname '*.[ch]' -not -path */gen/* |\
xargs ./scripts/warn-undocumented
doxygen docs/doxygen.conf
RM = rm
.PHONY: clean
clean:
$(RM) -rf $(CLEANUP)
.PHONY: clean_run
clean_run:
$(CLEANUP_CMD)
.PHONY: clean_docs
clean_docs:
$(RM) -rf docs/output
.PHONY: clean_all
clean_all: clean clean_run clean_docs
|