Add basic manpage
diff --git a/Makefile.am b/Makefile.am
index 4c3e7c3..7c28996 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
 AUTOMAKE_OPTIONS = foreign
 ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = src
+SUBDIRS = src man
 
diff --git a/configure.ac b/configure.ac
index af7d0ac..ab3945b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,5 +48,6 @@
 AC_OUTPUT([
 Makefile
 src/Makefile
+man/Makefile
 ])
 
diff --git a/man/Makefile.am b/man/Makefile.am
new file mode 100644
index 0000000..4a1d31f
--- /dev/null
+++ b/man/Makefile.am
@@ -0,0 +1,2 @@
+man_MANS = ideviceinstaller.1
+EXTRA_DIST = $(man_MANS)
diff --git a/man/ideviceinstaller.1 b/man/ideviceinstaller.1
new file mode 100644
index 0000000..d601d71
--- /dev/null
+++ b/man/ideviceinstaller.1
@@ -0,0 +1,101 @@
+.TH "ideviceinstaller" 1
+.SH NAME
+ideviceinstaller \- Manage iPhone/iPod Touch apps
+.SH SYNOPSIS
+.B ideviceinstaller
+[OPTIONS]
+
+.SH DESCRIPTION
+
+Allows to install, upgrade, uninstall, archive, restore and
+enumerate installed or archived apps on iPhone/iPod Touch devices.
+
+.SH OPTIONS
+
+.SS General options:
+.TP
+.B \-D, \-\-debug
+enable communication debugging.
+.TP
+.B \-u, \-\-uuid UUID
+target specific device by its 40-digit device UUID.
+.TP
+.B \-h, \-\-help
+prints usage information
+
+.SS Commands:
+.TP
+.B \-l, \-\-list-apps
+list apps installed on the device.
+
+.RS
+.B Additional options:
+.TP
+-o list_user
+list user apps only (apps installed by the user)
+.B This is the default.
+.TP
+-o list_system
+list system apps only (apps available from the system firmware)
+.TP
+-o list_all
+list all types of apps
+.TP
+-o xml
+print output in xml format (PList)
+.RE
+
+.TP
+.B \-i, \-\-install ARCHIVE
+install app from a package file specified by ARCHIVE.
+
+.TP
+.B \-i, \-\-uninstall APPID
+uninstall app specified by APPID.
+
+.TP
+.B \-g, \-\-upgrade APPID
+upgrade app specified by APPID.
+
+.TP
+.B \-r, \-\-restore APPID
+restore archived app specified by APPID.
+
+.TP
+.B \-L, \-\-list-archives
+list archived applications on the device.
+
+.RS
+.B Additional options:
+.TP
+-o xml
+print output in xml format (PList)
+.RE
+
+.TP
+.B \-a, \-\-archive APPID
+archive app specified by APPID.
+
+.RS
+.B Additional options:
+.TP
+-o uninstall
+uninstall the package after making an archive
+.TP
+-o app_only
+archive application data only
+.TP
+-o copy=PATH
+copy the app archive to directory PATH when done
+.TP
+-o remove
+only valid when copy=PATH is used: remove after copy
+.RE
+
+.TP
+.B \-R, \-\-remove-archive APPID
+remove app archive specified by APPID.
+
+.SH AUTHOR
+This manual page was written by Martin Szulecki.
+