ponysay/configure
Mattias Andrée a3447540e1 make fix
2012-08-27 17:32:26 +02:00

24 lines
700 B
Bash
Executable file

#!/bin/sh
function makeMakefile()
{
params=''
for arg in "$@"; do
params="$params '$(echo $arg | sed -e "s/'/'\\''/g")'"
done
echo 'PARAMS ='"$params"
echo
echo -e 'default: all\n'
echo -e 'all: build\n'
for func in $(echo 'build' 'prebuilt' 'uninstall' 'uninstall-old' 'clean' 'clean-old' 'view'); do
echo -e "$func"':\n\t./setup.py ---DESTDIR="$(DESTDIR)" ---PREFIX="$(PREFIX)" $(PARAMS) '"$func"'\n'
done
echo -e 'install-build:\n\t./setup.py ---DESTDIR="$(DESTDIR)" ---PREFIX="$(PREFIX)" $(PARAMS) install\n'
echo -e 'install:\n\t./setup.py ---DESTDIR="$(DESTDIR)" ---PREFIX="$(PREFIX)" $(PARAMS) prebuilt\n'
}
makeMakefile "$@" > Makefile