Skip to content

Commit

Permalink
Use INSTALL_PREFIX as a prefix, not a full path
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Aug 23, 2023
1 parent 039d44a commit 758b0f8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions util/tracing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ CFLAGS= -I$(REACTOR_C)/include/core/ \
DEPS=
LIBS=-lcurl

INSTALL_PREFIX ?= /usr/local/bin
INSTALL_PREFIX ?= /usr/local
BIN_INSTALL_PATH = $(INSTALL_PREFIX)/bin

%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
Expand All @@ -28,12 +29,12 @@ trace_to_influxdb: trace_to_influxdb.o trace_util.o
$(CC) -o trace_to_influxdb trace_to_influxdb.o trace_util.o $(LIBS)

install: trace_to_csv trace_to_chrome trace_to_influxdb
mv trace_to_csv $(INSTALL_PREFIX)
mv trace_to_chrome $(INSTALL_PREFIX)
mv trace_to_influxdb $(INSTALL_PREFIX)
cp ./visualization/fedsd.py $(INSTALL_PREFIX)
ln -f -s $(INSTALL_PREFIX)/fedsd.py $(INSTALL_PREFIX)/fedsd
chmod +x $(INSTALL_PREFIX)/fedsd
mv trace_to_csv $(BIN_INSTALL_PATH)
mv trace_to_chrome $(BIN_INSTALL_PATH)
mv trace_to_influxdb $(BIN_INSTALL_PATH)
cp ./visualization/fedsd.py $(BIN_INSTALL_PATH)
ln -f -s $(BIN_INSTALL_PATH)/fedsd.py $(BIN_INSTALL_PATH)/fedsd
chmod +x $(BIN_INSTALL_PATH)/fedsd

clean:
rm -f *.o

0 comments on commit 758b0f8

Please sign in to comment.