Makefile for basic installation added
[truecrypt-extra.git] / Makefile
1 ### TrueCrypt Extra installation makefile
2 ### This file is a part of `truecrypt-extra`
3 ###
4 ### (c) Andrew Sichevoi, http://thekondor.net
5 ### Distributed in the terms of GNU GPL v3.0+ license
6 ###
7 ### The latest version is available on http://git.thekondor.net
8
9 INSTALL:=/usr/bin/install
10 INSTALL_OPTS:=--verbose --group=root --owner=root
11 INSTALL_REGULAR_OPTS:=${INSTALL_OPTS} --mode=644
12 INSTALL_EXEC_OPTS:=${INSTALL_OPTS} --mode=755
13 UNINSTALL:=/usr/bin/unlink
14
15 all: help
16
17 help:
18         @echo "Supported targets: [install|uninstall]"
19
20 install:
21         @${INSTALL} ${INSTALL_EXEC_OPTS} usr.bin.truecrypt-mount /usr/bin/truecrypt-mount
22         @${INSTALL} ${INSTALL_REGULAR_OPTS} etc.default.truecrypt /etc/default/truecrypt
23         @${INSTALL} ${INSTALL_EXEC_OPTS} etc.pm.sleep-d.20_unmount-truecrypt-containers /etc/pm/sleep.d/20_unmount-truecrypt-containers
24
25 uninstall:
26         @${UNINSTALL} /usr/bin/truecrypt-mount
27         @${UNINSTALL} /etc/default/truecrypt
28         @${UNINSTALL} /etc/pm/sleep.d/20_unmount-truecrypt-containers
29