Makefile for basic installation added master v0.1
authorAndrew Sichevoi <k@thekondor.net>
Tue, 1 May 2012 12:16:36 +0000 (16:16 +0400)
committerAndrew Sichevoi <k@thekondor.net>
Tue, 1 May 2012 12:16:36 +0000 (16:16 +0400)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..84d299b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+### TrueCrypt Extra installation makefile
+### This file is a part of `truecrypt-extra`
+###
+### (c) Andrew Sichevoi, http://thekondor.net
+### Distributed in the terms of GNU GPL v3.0+ license
+###
+### The latest version is available on http://git.thekondor.net
+
+INSTALL:=/usr/bin/install
+INSTALL_OPTS:=--verbose --group=root --owner=root
+INSTALL_REGULAR_OPTS:=${INSTALL_OPTS} --mode=644
+INSTALL_EXEC_OPTS:=${INSTALL_OPTS} --mode=755
+UNINSTALL:=/usr/bin/unlink
+
+all: help
+
+help:
+       @echo "Supported targets: [install|uninstall]"
+
+install:
+       @${INSTALL} ${INSTALL_EXEC_OPTS} usr.bin.truecrypt-mount /usr/bin/truecrypt-mount
+       @${INSTALL} ${INSTALL_REGULAR_OPTS} etc.default.truecrypt /etc/default/truecrypt
+       @${INSTALL} ${INSTALL_EXEC_OPTS} etc.pm.sleep-d.20_unmount-truecrypt-containers /etc/pm/sleep.d/20_unmount-truecrypt-containers
+
+uninstall:
+       @${UNINSTALL} /usr/bin/truecrypt-mount
+       @${UNINSTALL} /etc/default/truecrypt
+       @${UNINSTALL} /etc/pm/sleep.d/20_unmount-truecrypt-containers
+