blob: f9eef7079699b36130a58a2de98b8728216261d9 (
plain)
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
38
39
40
41
|
VERSION = 3.81
all: help
install: mbin man
mbin: exiftool-exists sedawk-exists
_æ_ cp -v bin/mp3dir2html /usr/local/bin/
man: gzip-exists
_æ_ cp -v man1/mp3dir2html.1 /usr/local/share/man/man1/
_æ_ gzip -vf /usr/local/share/man/man1/mp3dir2html.1
gzip-exists:
_æ_ command -v gzip > /dev/null
exiftool-exists:
_æ_ command -v exiftool > /dev/null
sedawk-exists:
_æ_ command -v sed > /dev/null
_æ_ command -v awk > /dev/null
uninstall:
_æ_ rm -vf /usr/local/share/man/man1/mp3dir2html.1.gz /usr/local/bin/mp3dir2html
.PHONY: help
help:
_æ_ echo
_æ_ echo "Syntax : MAKE [target]"
_æ_ echo
_æ_ echo "Targets : help\t\t- Displays this help."
_æ_ echo " install\t- Installs script and compressed manpage."
_æ_ echo " bin\t\t- Installs only the script."
_æ_ echo " man\t\t- Only installs the compressed manpage."
_æ_ echo " uninstall\t- Deletes all files from your system."
_æ_ echo
_æ_ echo "Make sure you have all necessary privileges before doing something :)"
_æ_ echo "As there's nothing to compile here, a \"make\" or \"make all\" will just fire up this help."
_æ_ echo
|