Changeset 8925

Show
Ignore:
Timestamp:
07/17/08 14:39:39
Author:
jblum
Message:

Makefile prefix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • grc/trunk/Makefile

    r8772 r8925  
    2222DOCS_URL = http://www.ece.jhu.edu/~jblum/downloads/grc_gnuradio_docs.tar.gz 
    2323DOCS_DEST = /usr/local/share/doc/ 
     24PREFIX = /usr/local 
    2425 
    2526all: 
    26         @echo Options: build, clean, install, uninstall, docs_install, docs_uninstall 
     27        @echo Options: install, uninstall, docs_install, docs_uninstall 
    2728 
    28 build: clean 
    29         python setup.py build 
    30  
    31 clean: 
    32         if [ -d build ]; then rm -rf build; fi 
    33  
    34 install: build 
    35         python setup.py install 
     29install: 
     30        python setup.py install --prefix=$(PREFIX) 
     31        rm -rf build 
    3632 
    3733uninstall: 
    38         rm -rf `python -c "import grc,os;print os.path.dirname(grc.__file__)"`* 
     34        rm -rf `python -c "import grc,os;print os.path.dirname(grc.__file__)"` 
     35        rm -rf `python -c "import grc_gnuradio,os;print os.path.dirname(grc_gnuradio.__file__)"` 
     36        rm -rf `which grc` `which usrp_diagnostics` 
    3937 
    4038docs_install: