Last change
on this file since 777 was 633, checked in by mar637, 20 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
|
Line | |
---|
1 | PREFIX := /usr/local
|
---|
2 | PYDIR := $(PREFIX)/lib/python2.3/site-packages
|
---|
3 |
|
---|
4 | ifndef ASAPROOT
|
---|
5 | ASAPROOT := $(shell pwd)
|
---|
6 | endif
|
---|
7 |
|
---|
8 | PY := $(wildcard python/*.py)
|
---|
9 | LIBS := lib/_asap.so
|
---|
10 | BINS := bin/asap
|
---|
11 |
|
---|
12 | all: module #doc
|
---|
13 |
|
---|
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.