-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.07 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
PREFIX=/srv/drone_boot
DESTDIR=
LOGDIR=/var/log/drone
CONFDIR=/etc/drone
INSTDIR=$(DESTDIR)$(PREFIX)
all: install config_install
install:
install -d $(INSTDIR)
install -d $(LOGDIR)
install -d $(CONFDIR)
install -d $(INSTDIR)/dev
install -d $(INSTDIR)/net
install -d $(INSTDIR)/log
install -d $(INSTDIR)/communication
install -m 664 --backup=simple -T config/99-usb-serial.rules /etc/udev/rules.d/99-usb-serial.rules
install -m 755 --backup=simple -T src/rc.local /etc/rc.local
install -m 754 -t $(INSTDIR) src/main.local
install -m 754 -t $(INSTDIR)/dev src/dev/*.sh
install -m 754 -t $(INSTDIR)/net src/net/*.sh
install -m 754 -t $(INSTDIR)/log src/log/*.sh
install -m 754 -t $(INSTDIR)/communication src/communication/*.sh
config_install:
install -m 744 -t $(CONFDIR) config/env.sh
install -m 644 -t $(CONFDIR) config/mavasync.json
install -d /etc/ppp/chat
install -m 644 -t /etc/ppp/chat config/c5100.chatscript
install -m 644 -t /etc/ppp/chat config/u6100.chatscript
uninstall:
rm -rf $(INSTDIR) $(CONFDIR)
#install -m 755 -T /etc/rc.local.save /etc/rc.local