-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
25 lines (20 loc) · 953 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
DIRS = ev3drive ev3odometry ev3laser ev3control ev3dead-reconning ev3wifi
OUTPUT_DIR = bin
all: $(DIRS) ev3init TestingTheLIDAR TestingTheDriveWithDeadReconning
$(DIRS):
$(MAKE) -C $@ && cp $@/$@ $(OUTPUT_DIR)/$@
ev3init:
cp scripts/ev3init.sh $(OUTPUT_DIR)/ev3init.sh && chmod +x $(OUTPUT_DIR)/ev3init.sh
TestingTheLIDAR:
cp scripts/TestingTheLIDAR.sh $(OUTPUT_DIR)/TestingTheLIDAR.sh && chmod +x $(OUTPUT_DIR)/TestingTheLIDAR.sh
TestingTheDriveWithDeadReconning:
cp scripts/TestingTheDriveWithDeadReconning.sh $(OUTPUT_DIR)/TestingTheDriveWithDeadReconning.sh && chmod +x $(OUTPUT_DIR)/TestingTheDriveWithDeadReconning.sh
clean:
$(MAKE) -C ev3drive clean
$(MAKE) -C ev3odometry clean
$(MAKE) -C ev3laser clean
$(MAKE) -C ev3control clean
$(MAKE) -C ev3dead-reconning clean
$(MAKE) -C ev3wifi clean
rm -f $(addprefix $(OUTPUT_DIR)/, $(DIRS) ev3init.sh TestingTheLIDAR.sh TestingTheDriveWithDeadReconning.sh)
.PHONY: clean $(DIRS)