- Timestamp:
- 05/11/05 09:49:52 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r372 r633 1 PREFIX := /usr/local 2 PYDIR := $(PREFIX)/lib/python2.3/site-packages 1 3 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 4 ifndef ASAPROOT 5 ASAPROOT := $(shell pwd) 7 6 endif 8 7 9 SRCDIR := $(shell pwd) 8 PY := $(wildcard python/*.py) 9 LIBS := lib/_asap.so 10 BINS := bin/asap 10 11 11 all: 12 cd src; make 12 all: module #doc 13 13 14 install: all 15 sh - bin/install.sh $(ASAPDIR) $(SRCDIR) 14 module: 15 @cd $(ASAPROOT)/src; make 16 17 doc: 18 @cd $(ASAPROOT)/doc; make 19 20 install: 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 27 clean: 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.