2012-08-26 07:11:53 +02:00
|
|
|
#!/bin/sh
|
2012-08-18 22:28:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
function makeMakefile()
|
|
|
|
{
|
2012-08-26 07:09:39 +02:00
|
|
|
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
|
|
|
|
2012-08-26 07:09:39 +02:00
|
|
|
echo 'PARAMS ='"$params"
|
2012-08-19 19:36:00 +02:00
|
|
|
echo
|
2012-08-26 07:09:39 +02:00
|
|
|
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
|
2012-08-27 21:46:52 +02:00
|
|
|
echo -e "$func"':\n\t./setup.py ---DESTDIR="$(DESTDIR)" ---PREFIX="$(PREFIX)" $(PARAMS) '"$func"'\n'
|
2012-08-18 23:47:39 +02:00
|
|
|
done
|
2012-08-27 21:46:52 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2012-08-26 07:09:39 +02:00
|
|
|
|
|
|
|
makeMakefile "$@" > Makefile
|
2012-08-18 23:47:39 +02:00
|
|
|
|