source: branches/Release-2-fixes/Makefile@ 1227

Last change on this file since 1227 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 
1PREFIX := /usr/local
2PYDIR := $(PREFIX)/lib/python2.3/site-packages
3
4ifndef ASAPROOT
5 ASAPROOT := $(shell pwd)
6endif
7
8PY := $(wildcard python/*.py)
9LIBS := lib/_asap.so
10BINS := bin/asap
11
12all: module #doc
13
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 TracBrowser for help on using the repository browser.