summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)