diff --git a/Makefile b/Makefile index 629a9bb..a1e6e73 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ CXXFLAGS=$(shell pkg-config fuse --cflags) LDFLAGS=$(shell pkg-config fuse --libs) TARGET=adbfs +DESTDIR?=/ +INSTALL_DIR?=${DESTDIR}/usr/ all: $(TARGET) @@ -19,5 +21,9 @@ $(TARGET): adbfs.o clean: rm -rf *.o html/ latex/ $(TARGET) -doc: - doxygen Doxyfile +doc: Doxyfile + doxygen $< + +install: ${TARGET} + install -d ${INSTALL_DIR}/bin + install -s $< ${INSTALL_DIR}/bin/ diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..3ff72b4 --- /dev/null +++ b/README.rst @@ -0,0 +1,24 @@ +Instructions +============ + +Compilation +----------- + +You will need at least the following on Debian: + +- android-tools-adb +- libfuse-dev +- pkg-config + +Install +------- + +Put the compiled binary into your ``/tools`` +directory. + +Use +--- + +:: + + $ adbfs diff --git a/adbfs.cpp b/adbfs.cpp index 11bcbf5..9d28c23 100644 --- a/adbfs.cpp +++ b/adbfs.cpp @@ -73,6 +73,7 @@ #define FUSE_USE_VERSION 26 #include "utils.h" +#include #include #include