Last change
on this file since 662 was
633,
checked in by mar637, 19 years ago
|
new makefile not using install.sh
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
692 bytes
|
Rev | Line | |
---|
[633] | 1 | PREFIX := /usr/local |
---|
| 2 | PYDIR := $(PREFIX)/lib/python2.3/site-packages |
---|
[372] | 3 | |
---|
[633] | 4 | ifndef ASAPROOT |
---|
| 5 | ASAPROOT := $(shell pwd) |
---|
[372] | 6 | endif |
---|
| 7 | |
---|
[633] | 8 | PY := $(wildcard python/*.py) |
---|
| 9 | LIBS := lib/_asap.so |
---|
| 10 | BINS := bin/asap |
---|
[372] | 11 | |
---|
[633] | 12 | all: module #doc |
---|
[372] | 13 | |
---|
[633] | 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
TracBrowser
for help on using the repository browser.