-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (65 loc) · 1.56 KB
/
Makefile
File metadata and controls
73 lines (65 loc) · 1.56 KB
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
63
64
65
66
67
68
69
70
71
72
73
# Top-level Makefile for OpenWearable
# List of all applications
APPS = template \
reflex \
load-cell-test \
lut-example \
sysID-dual-actuators \
plotter-example \
pam-cycle-test \
udptest \
test-pwm \
test-maxon \
pam-step-response \
close-all-valves \
maxon-freq-sweep \
antagonist-freq-sweep \
reflex-tracking \
tare-encoder \
thumbsup-triggered \
thumbsup-gas \
thumbsup-assist \
pamtest \
pam-starecase \
haptic-tracking \
haptic-eval \
haptic-experiment \
imutest \
buttontest \
test-blue-servos
.PHONY: all clean $(APPS) clean-apps
all: $(APPS)
# App targets (build each app)
$(APPS):
@echo "Building $@..."
cd apps && $(MAKE) $@
# Clean specified app
clean-%:
@echo "Cleaning $*..."
cd apps && $(MAKE) clean-$*
# Clean all apps
clean-apps:
@for app in $(APPS); do \
echo "Cleaning $$app..."; \
cd apps && $(MAKE) clean-$$app; \
done
# Clean everything
clean: clean-apps
@echo "Cleaned all OpenWearable components"
# Help target
help:
@echo "OpenWearable Build System"
@echo "--------------------------"
@echo "Main targets:"
@echo " all - Build all apps"
@echo " <app-name> - Build specific app (e.g., 'make template')"
@echo ""
@echo "Clean targets:"
@echo " clean - Clean everything"
@echo " clean-apps - Clean all apps"
@echo " clean-<app> - Clean specific app (e.g., 'make clean-template')"
@echo ""
@echo "Available apps:"
@for app in $(APPS); do \
echo " $$app"; \
done