summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2023-12-14 19:38:55 -0500
committerFreya Murphy <freya@freyacat.org>2023-12-14 19:38:55 -0500
commit3d10d02620a0e587d765f6042ab05f530b201c39 (patch)
treeb28191352881a99286adfd798080b4325e259b55 /Makefile
parenttesting (diff)
downloadnbtvis-3d10d02620a0e587d765f6042ab05f530b201c39.tar.gz
nbtvis-3d10d02620a0e587d765f6042ab05f530b201c39.tar.bz2
nbtvis-3d10d02620a0e587d765f6042ab05f530b201c39.zip
initial stable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 25b86d2..9613a70 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
BIN = bin
OUT = $(BIN)/out
+INS = /usr/local/bin/nbtvis
SRC = $(shell find src -type f -name "*.c")
OBJ = $(patsubst %.c,$(BIN)/%.o, $(SRC))
@@ -22,5 +23,12 @@ $(OUT): $(OBJ) $(ASM_OBJ)
@mkdir -p $(@D)
$(LD) -o $(OUT) $(OBJ) $(LDFLAGS)
+run:
+ $(OUT)
+
+install:
+ cp $(OUT) $(INS)
+ chown root: $(INS)
+
clean:
rm -fr $(BIN)