ponysay/configure

25 lines
700 B
Text
Raw Normal View History

2012-08-26 07:11:53 +02:00
#!/bin/sh
2012-08-18 22:28:17 +02:00
function makeMakefile()
{
params=''
for arg in "$@"; do
params="$params '$(echo $arg | sed -e "s/'/'\\''/g")'"
2012-08-18 22:49:34 +02:00
done
2012-08-20 18:53:00 +02:00
echo 'PARAMS ='"$params"
echo
echo -e 'default: all\n'
echo -e 'all: build\n'
2012-08-27 17:32:26 +02:00
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'
2012-08-18 23:47:39 +02:00
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'
2012-08-18 22:28:17 +02:00
}
makeMakefile "$@" > Makefile
2012-08-18 23:47:39 +02:00