-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
51 lines (39 loc) · 1006 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# you can set this to 1 to see all commands that are being run
export VERBOSE := 0
ifeq ($(VERBOSE),1)
export Q :=
export VERBOSE := 1
else
export Q := @
export VERBOSE := 0
endif
BUILDRESULTS?=buildresults
CONFIGURED_BUILD_DEP = $(BUILDRESULTS)/build.ninja
version := $(subst -, ,$(shell git describe --long --dirty --tags))
export BUILD_TAG :=$(strip $(word 1, $(version)))
.PHONY: all
all: makerelease
# Runs whenever the build has not been configured successfully
$(CONFIGURED_BUILD_DEP):
$(Q) meson $(BUILDRESULTS)
.PHONY: makerelease
makerelease:
$(Q)cd avr/bootloaders/athena/src/; ./makerelease
.PHONY: clean
clean:
$(Q)make -C avr/bootloaders/athena/src/ clean
.PHONY: distclean
distclean:
$(Q) rm -rf $(BUILDRESULTS)
.PHONY: package
package:
$(Q)tools/package.sh
.PHONY: format
format:
$(Q)tools/format/clang-format-all.sh
.PHONY : format-diff
format-diff :
$(Q)tools/format/clang-format-git-diff.sh
.PHONY : format-check
format-check :
$(Q)tools/format/clang-format-patch.sh