aboutsummaryrefslogtreecommitdiff
path: root/configure
blob: 7ac2b5092a89a24d8cd7e18ae29d1b3a7c1877c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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