forked from OpenSolo/sololink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 689 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 689 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
SUBDIRS = flightcode wifi
SUBDIRS_BUILD = $(SUBDIRS:%=%_build)
SUBDIRS_CLEAN = $(SUBDIRS:%=%_clean)
# SUBDIRS2 should eventually be same as SUBDIRS when all are formatted
SUBDIRS2 = flightcode
SUBDIRS_FMT = $(SUBDIRS2:%=%_fmt)
SUBDIRS_FMT_DIFF = $(SUBDIRS2:%=%_fmt-diff)
all: $(SUBDIRS_BUILD)
build: $(SUBDIRS_BUILD)
$(SUBDIRS_BUILD):
$(MAKE) -C $(@:%_build=%)
clean: $(SUBDIRS_CLEAN)
$(SUBDIRS_CLEAN):
$(MAKE) -C $(@:%_clean=%) clean
fmt: $(SUBDIRS_FMT)
$(SUBDIRS_FMT):
$(MAKE) -C $(@:%_fmt=%) fmt
fmt-diff: $(SUBDIRS_FMT_DIFF)
$(SUBDIRS_FMT_DIFF):
$(MAKE) -C $(@:%_fmt-diff=%) fmt-diff
.PHONY: $(SUBDIRS) $(SUBDIRS_BUILD) $(SUBDIRS_CLEAN) $(SUBDIRS_FMT) $(SUBDIRS_FMT_DIFF)