diff options
| author | mail_redacted_for_web | 2014-08-12 14:10:07 +0200 | 
|---|---|---|
| committer | mail_redacted_for_web | 2014-08-12 14:10:07 +0200 | 
| commit | e3c260a92203c6b10d57d8af0be3df932dda60f6 (patch) | |
| tree | c0959d20d778e9df84acb9d48be92ad5f22a6d4e | |
| parent | 6bd85869b18ffd62e1b9cbbae4bbc77bc4571577 (diff) | |
| download | mp3dir2html-e3c260a92203c6b10d57d8af0be3df932dda60f6.tar.bz2 | |
*README.md (installation), +Makefile, %rename script file
| -rw-r--r-- | Makefile | 33 | ||||
| -rw-r--r-- | README.md | 7 | ||||
| -rwxr-xr-x | bin/mp3dir2html (renamed from bin/mp3dirlist) | 0 | 
3 files changed, 40 insertions, 0 deletions
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 @@ -15,3 +15,10 @@ The auxiliaries:  * [Bash](http://www.gnu.org/software/bash/) (Bourne Again Shell)  * [GNU coreutils](http://www.gnu.org/software/coreutils/), [sed](http://www.gnu.org/software/sed/) and [(g)awk](http://www.gnu.org/software/gawk/) -- most likely already installed on your system + +Installation +------------ + +Just type "make help". + +The alternative: Copy bin/mp3dir2html to a PATH directory of your choice, and copy man/mp3dir2html to a system manpage directory of your choice (with or without compression, whatever preferred). diff --git a/bin/mp3dirlist b/bin/mp3dir2html index fcb5494..fcb5494 100755 --- a/bin/mp3dirlist +++ b/bin/mp3dir2html  | 
