-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (24 loc) · 874 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
26
27
28
29
30
31
# Makefile primarily to install binaries and scripts
#
# usage:
# make DESTDIR=/acute install
#
# NOTE: This is for GNU make
#
DESTDIR ?= /Users/acute
.VPATH = target/release target/debug
BINARIES = acutectl process-data
SCRIPTS = scripts/convert-csv.py scripts/dispatch-drops.py scripts/fetch-all-adsb.txt scripts/fetch-all-drones.py \
scripts/fetch-asd-drones.py scripts/fetch-ftp-adsb.py scripts/fetch-opensky.py scripts/import-adsb.py \
scripts/import-drones.py
TARGET = target/release
all: ${BINARIES}
cargo build --release
debug: ${BINARIES}
cargo build
acutectl: acutectl/src/main.rs
process-data: process-data/src/main.rs
install: $(BINARIES) $(SCRIPTS)
install -c -m 755 -s -o acute target/release/acutectl $(DESTDIR)/bin
install -c -m 755 -s -o acute target/release/process-data $(DESTDIR)/bin
install -c -m 755 -o acute $(SCRIPTS) $(DESTDIR)/bin