List "make install" files explicitly and use install tool

* Previously, "make tests install" would also copy trivial_test.exe and
   trivial_test.d to /usr/local/bin.

 * The `install` tool seems to be the conventional way of installing files.
   Setting permissions when copying to /usr/local/bin seems like a good
   idea.

 * Invoke install with -s to strip the symbol tables when they're
   installed.
This commit is contained in:
Ryan Prichard 2015-10-15 16:47:00 -05:00
parent 1ddff08321
commit 4fbda64b7e

View File

@ -31,7 +31,10 @@ tests :
install : all
mkdir -p $(PREFIX)/bin
cp build/* $(PREFIX)/bin
install -m 755 -p -s build/console.exe $(PREFIX)/bin
install -m 755 -p -s build/winpty.dll $(PREFIX)/bin
install -m 755 -p -s build/winpty-agent.exe $(PREFIX)/bin
install -m 755 -p -s build/winpty-debugserver.exe $(PREFIX)/bin
clean :
cd agent && $(MAKE) clean