Install location to /usr/local

This commit is contained in:
zawz 2019-08-15 14:37:08 +02:00
parent cbae47c692
commit 6b0b89df7d
2 changed files with 8 additions and 4 deletions

View file

@ -45,8 +45,12 @@ shared: $(OBJ_SHARED)
$(CC) -shared -o libztd.so $^
install: all
mv libztd.a libztd.so /usr/lib
cp -r include /usr/include/ztd
mv libztd.a libztd.so /usr/local/lib
cp -r include /usr/local/include/ztd
uninstall:
rm /usr/local/lib/libztd.*
rm -rd /usr/local/include/ztd
clean:
rm $(ODIR)/*.o $(ODIR_SHARED)/*.o

View file

@ -14,5 +14,5 @@ Use ``doxygen`` to generate HTML documentation files
## Installing
``sudo make install``
Moves ``libztd.a`` and ``libztd.so`` to ``/usr/lib``
Copies headers to ``/usr/include/ztd``
Moves ``libztd.a`` and ``libztd.so`` to ``/usr/local/lib``
Copies headers to ``/usr/local/include/ztd``