summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-11 19:15:44 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-11 19:15:44 +0100
commitebb05288b2846466ff26ea1076c4e9ea6fbe98b9 (patch)
treee77db31b9e8819a0e3ee454bc40904d372eac51b
parentc8953334ac788a6405c45e009ceeca72bc9d35bd (diff)
Add makefile, fix filename
-rw-r--r--Makefile18
-rwxr-xr-xlib/ssh-forcecommand (renamed from lib/forcecommand)0
2 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..86f9f45
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+PREFIX ?= /usr/local
+
+main_dir = ${DESTDIR}${PREFIX}
+lib_dir = ${main_dir}/lib
+
+all:
+ @echo "There is nothing to make, you can just make install"
+
+install:
+ @echo installing lib/ssh-forcecommand to ${lib_dir}
+ @mkdir -p ${lib_dir}
+ @cp lib/ssh-forcecommand ${lib_dir}
+ @chmod 755 ${lib_dir}/ssh-forcecommand
+
+uninstall:
+ rm -f ${lib_dir}/ssh-forcecommand
+
+.PHONY: all install uninstall
diff --git a/lib/forcecommand b/lib/ssh-forcecommand
index 16e04c5..16e04c5 100755
--- a/lib/forcecommand
+++ b/lib/ssh-forcecommand