From 35cedd988ab077041cbbe2a7f3e31e387d1ecf6f Mon Sep 17 00:00:00 2001 From: Flan's server Date: Mon, 12 Oct 2020 03:27:43 +0000 Subject: [PATCH] make install --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 454f174..b2044ad 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ BUILD:=build FEATURES?=-DFIXED_ROW_SIZE=24 CFLAGS:= $(FEATURES) -Wall -pedantic -O3 -march=native --std=gnu++20 -fgraphite -flto LFLAGS:=-O3 -flto -lfmt +DESTDIR?=/usr/local/bin hexview: g++ $(SRC) $(CFLAGS) -I$(INCLUDE) -o $(BUILD)/$@ $(LFLAGS) @@ -11,3 +12,6 @@ hexview: clean: rm -f $(BUILD)/* + +install: hexview + cp -f $(BUILD)/hexview $(DESTDIR)/hexview