Changeset 633


Ignore:
Timestamp:
05/11/05 09:49:52 (19 years ago)
Author:
mar637
Message:

new makefile not using install.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r372 r633  
     1PREFIX := /usr/local
     2PYDIR := $(PREFIX)/lib/python2.3/site-packages
    13
    2 # directoty to install ASAP and the source directory
    3 ifdef NARRABRI_ASAP
    4 ASAPDIR := /DATA/KAPUTAR_2/vor010/ASAP/site-packages/asap
    5 else
    6 ASAPDIR := /usr/local/lib/python2.3/site-packages/asap
     4ifndef ASAPROOT
     5   ASAPROOT := $(shell pwd)
    76endif
    87
    9 SRCDIR := $(shell pwd)
     8PY := $(wildcard python/*.py)
     9LIBS := lib/_asap.so
     10BINS := bin/asap
    1011
    11 all:
    12         cd src; make
     12all: module #doc
    1313
    14 install: all
    15         sh - bin/install.sh $(ASAPDIR) $(SRCDIR)
     14module:
     15        @cd $(ASAPROOT)/src; make
     16
     17doc:
     18        @cd $(ASAPROOT)/doc; make
     19
     20install:
     21        @if ( test ! -d $(PYDIR)/asap ) ; then mkdir -p $(PYDIR)/asap ; fi
     22        @for file in $(LIBS) ; do cp -f $$file $(PYDIR)/asap ; done
     23        @for file in $(BINS) ; do cp -f $$file $(PREFIX)/bin ; done
     24        @for file in $(PY) ; do cp -f $$file $(PYDIR)/asap ; done
     25        @echo "Successfully installed asap module to" $(PYDIR)
     26
     27clean:
     28        @cd $(ASAPROOT)/src; make clean
     29        @cd $(ASAPROOT)/doc; make clean   
     30
     31.PHONY: install clean
Note: See TracChangeset for help on using the changeset viewer.