-
Notifications
You must be signed in to change notification settings - Fork 159
/
Makefile
60 lines (52 loc) · 1.77 KB
/
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
52
53
54
55
56
57
58
59
60
prefix := /usr
RM := rm -r -f
INSTALL := install -m 755
INSTALLDIR := install -d -m 755
INSTALLDIRWRITE := install -d -m 777
INSTALLNONEXEC := install -m 644
all:
@make -C library --no-print-directory
@make -C examples --no-print-directory
@make -C services/rc_battery_monitor --no-print-directory
@make -C services/robotcontrol --no-print-directory
install:
@$(INSTALLDIR) $(DESTDIR)$(prefix)/share/robotcontrol
@cp -r -f rc_project_template $(DESTDIR)$(prefix)/share/robotcontrol/
@$(INSTALLDIR) $(DESTDIR)$(prefix)/bin
@$(INSTALL) device_tree/configure_robotics_dt.sh $(DESTDIR)$(prefix)/bin/configure_robotics_dt
@make -C pru_firmware -s install
@make -C library -s install
@make -C examples -s install
@make -C services/rc_battery_monitor -s install
@make -C services/robotcontrol -s install
clean:
@make -C pru_firmware -s clean
@make -C library -s clean
@make -C examples -s clean
@make -C services/rc_battery_monitor -s clean
@make -C services/robotcontrol -s clean
@make -C rc_project_template -s clean
@$(RM) debian/librobotcontrol
@$(RM) debian/librobotcontrol.postrm.debhelper
@$(RM) debian/librobotcontrol.substvars
@$(RM) debian/files
@$(RM) debian/*.debhelper.log
@$(RM) debian/debhelper-build-stamp
@$(RM) docs/html
@echo "All Directories Cleaned"
uninstall:
@make -C pru_firmware -s uninstall
@make -C library -s uninstall
@make -C examples -s uninstall
@make -C services/rc_battery_monitor -s uninstall
@make -C services/robotcontrol -s uninstall
@$(RM) $(DESTDIR)$(prefix)/bin/configure_robotics_dt
@$(RM) $(DESTDIR)$(prefix)/share/robotcontrol
@$(RM) $(DESTDIR)/var/lib/robotcontrol
@$(RM) $(DESTDIR)/var/log/robotcontrol
@echo "Robotics Cape Uninstalled"
package:
debuild -us -uc
# no compile option for package
packagenc:
debuild -us -uc -nc