* OS variable was unused
* ifndef section is not needed since
"make PREFIX=... MANPREFIX=..." overwrites
whatever is set there
* notdir is a GNU specific function (not POSIX) and doesn't do
anything in this case
* "sed -i" is not POSIX and pointless if pipes are used correctly
* the "if" block can be removed since "sed" can also be used to
copy files to the destination.
The `script` variable you were referring to previously is actually the
relative path to a script, for example `bin/mw`.
This fails to remove the script, because, obviously, the path is
incorrect.
I'd suggest renaming `script` to `scriptPath` in line 13
and `shared` to `sharedPath` in line 18
(or whatever variable names you prefer that make it clearer)
to avoid confusion in the future.
Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
for loop directory wildcard includes the directory name. No need to
specify the dir name when removing file.
Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
This patch puts the environment variable PREFIX in more use. If
specified, mull-wizard Makefile substitute all instances of prefix with
the provided environment variable.
Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>