Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    • Property svn:mergeinfo changed (with no actual effect on merging)
    r1849 r1941  
    77#for linux
    88PREFIX := $(word 1, $(CASAPATH))/$(word 2,$(CASAPATH))
    9 PYDIR := $(PREFIX)/python/2.5
     9PYTHONVER := $(shell $(shell make -s -f $(PREFIX)/makedefs VARS=PYTHONVER eval_vars) && echo $$PYTHONVER)
     10PYDIR := $(PREFIX)/python/$(PYTHONVER)
    1011
    1112ifndef ASAPROOT
    1213   ASAPROOT := $(shell pwd)
    1314endif
     15ATNFD := external-alma
     16PYRAPD := external/libpyrap
    1417
    1518#PY := $(wildcard python/*.py)
     
    2730module:
    2831        @if ( test -f getsvnrev.sh ) ; then /bin/bash getsvnrev.sh ; fi
     32        @cd $(ASAPROOT)/$(PYRAPD); make
     33        @cd $(ASAPROOT)/$(ATNFD); make
    2934        @cd $(ASAPROOT)/src; make
    3035        @cd $(ASAPROOT)/apps; make
     
    3843        @if ( test ! -d $(PYDIR)/asap ) ; then mkdir -p $(PYDIR)/asap ; fi
    3944        @if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
     45        @cd $(ASAPROOT)/$(ATNFD); make install
     46        @cd $(ASAPROOT)/$(PYRAPD); make install
    4047        @for file in $(LIBS) ; do cp -f $$file $(PYDIR)/asap ; done
    4148        @for file in $(BINS) ; do cp -f $$file $(PREFIX)/bin ; done
    4249        @for file in $(PY) ; do cp -f $$file $(PYDIR)/asap ; done
    43         @for file in $(APPS) ; do cp -f $$file $(PREFIX)/bin ; done
    4450        @if ( test ! -d $(PREFIX)/share/asap ) ; then mkdir -p $(PREFIX)/share/asap ; fi
    4551        @cp -f share/ipythonrc-asap $(PREFIX)/share/asap/
     52        @for file in $(APPS) ; do cp -f $$file $(PREFIX)/bin ; done
    4653        @echo "Successfully installed asap module to" $(PYDIR)
    4754
    4855clean:
    4956        @cd $(ASAPROOT)/src; make clean
    50         @cd $(ASAPROOT)/doc; make clean
     57#       @cd $(ASAPROOT)/doc; make clean
     58        @cd $(ASAPROOT)/$(ATNFD); make realclean
     59        @cd $(ASAPROOT)/apps; make clean
     60        @cd $(ASAPROOT)/$(PYRAPD); make clean
    5161
    5262datadist:
Note: See TracChangeset for help on using the changeset viewer.