From e3c260a92203c6b10d57d8af0be3df932dda60f6 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Tue, 12 Aug 2014 14:10:07 +0200 Subject: *README.md (installation), +Makefile, %rename script file --- Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..67d4bd1 --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +VERSION = 3.81 + +install: all + +all: bin man + +bin: + @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 + +uninstall: + @rm -v /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 " all\t\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 -- cgit v1.2.3