updated readme, simplified make
This commit is contained in:
parent
00fa0c15e1
commit
f035426e7f
3 changed files with 14 additions and 6 deletions
8
Makefile
8
Makefile
|
@ -8,14 +8,14 @@ uirc: ${SRC}
|
||||||
${CC} -o uirc -O ${SRC}
|
${CC} -o uirc -O ${SRC}
|
||||||
|
|
||||||
install: uirc
|
install: uirc
|
||||||
mkdir -p ${PREFIX}/bin
|
mkdir -p ${PREFIX}
|
||||||
cp -f uirc ${PREFIX}/bin
|
cp -f uirc ${PREFIX}
|
||||||
chmod 755 ${PREFIX}/bin/uirc
|
chmod 755 ${PREFIX}/uirc
|
||||||
mkdir -p ${LIB_PREFIX}/uirc
|
mkdir -p ${LIB_PREFIX}/uirc
|
||||||
cp -f LICENSE ${LIB_PREFIX}/uirc
|
cp -f LICENSE ${LIB_PREFIX}/uirc
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm ${PREFIX}/bin/uirc
|
rm ${PREFIX}/uirc
|
||||||
rm -r ${LIB_PREFIX}/uirc
|
rm -r ${LIB_PREFIX}/uirc
|
||||||
test -s ${INCLUDE_PREFIX}/uirc || rm -r ${INCLUDE_PREFIX}/uirc
|
test -s ${INCLUDE_PREFIX}/uirc || rm -r ${INCLUDE_PREFIX}/uirc
|
||||||
|
|
||||||
|
|
10
README.rst
10
README.rst
|
@ -32,6 +32,14 @@ I've made my decision. How do I install?
|
||||||
|
|
||||||
Ah, the UNIX community. Stubborn about always wanting to use command line tools over convenience. It just warms my heart.
|
Ah, the UNIX community. Stubborn about always wanting to use command line tools over convenience. It just warms my heart.
|
||||||
|
|
||||||
In order to install, you must have ``make`` (installed on basically all \*nix systems) or another compatible tool installed. Then, simply run::
|
In order to build ``uirc``, you must have ``make`` or another compatible tool for Makefiles installed. You will also need the Public Domain ``stb`` header files, all of which can be installed through your system's package manager. You also can manually install the single header file ``uirc`` needs if you don't want the other headers. You can do this by running::
|
||||||
|
|
||||||
|
$ make stb
|
||||||
|
|
||||||
|
Once the headers are installed, you can simply run this command to make the binary::
|
||||||
|
|
||||||
|
$ make
|
||||||
|
|
||||||
|
Or, if you would like to install ``uirc`` to your system globally, run::
|
||||||
|
|
||||||
$ make install
|
$ make install
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# install location
|
# install location
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local/bin
|
||||||
LIB_PREFIX = ${PREFIX}/lib
|
LIB_PREFIX = ${PREFIX}/lib
|
||||||
INCLUDE_PREFIX = /usr/include
|
INCLUDE_PREFIX = /usr/include
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue