From 325b30d30b1111566c22cf107ed34fe3a689f79c Mon Sep 17 00:00:00 2001 From: Kimi Jin Date: Wed, 24 Jun 2020 13:33:23 +0800 Subject: [PATCH] Add install rules into Makefile. This will insatll MMDVMHost and RemoteCommand to /usr/local/bin/ path, so need exec with command 'sudo make install'. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index e14f51c..984a3dc 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,10 @@ RemoteCommand: Log.o RemoteCommand.o UDPSocket.o %.o: %.cpp $(CXX) $(CFLAGS) -c -o $@ $< +install: + install -m 755 MMDVMHost /usr/local/bin/ + install -m 755 RemoteCommand /usr/local/bin/ + clean: $(RM) MMDVMHost RemoteCommand *.o *.d *.bak *~ GitVersion.h