File: Makefile

package info (click to toggle)
tomb 2.11%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,216 kB
  • sloc: sh: 10,464; ansic: 496; python: 311; cpp: 165; makefile: 138; perl: 57; xml: 11
file content (37 lines) | stat: -rw-r--r-- 1,212 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PROG = tomb
PREFIX ?= /usr/local
MANDIR ?= ${PREFIX}/share/man

deps:
	@if [ -r /etc/debian_version ]; then \
	apt-get install -qy zsh cryptsetup file gnupg pinentry-curses; fi
	@if [ -r /etc/fedora-release ]; then \
	yum install -y zsh cryptsetup file gnupg pinentry-curses; fi
	@if [ -r /etc/alpine-release ]; then \
	apk add zsh cryptsetup file gpg pinentry-tty e2fsprogs findmnt; fi

all:
	@echo
	@echo "Tomb is a script and does not need compilation, it can be simply executed."
	@echo
	@echo "To install it in /usr/local together with its manpage use 'make install'."
	@echo
	@echo "To run Tomb one needs to have some tools installed on the system:"
	@echo "Sudo, cryptsetup, pinentry and gnupg."
	@echo

install:
	install -Dm755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
	install -Dm644 doc/${PROG}.1 ${DESTDIR}${MANDIR}/man1/${PROG}.1
	@echo
	@echo "Tomb is installed succesfully. To install language translations, make sure"
	@echo "gettext is also installed, then 'cd extras/translations' and 'make install' there."
	@echo
	@echo "Look around the extras/ directory, it contains other interesting modules."
	@echo

test:
	make -C extras/test

lint:
	shellcheck -s bash -e SC1058,SC1073,SC1072,SC1009 tomb