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