Changeset 1343 for trunk/Makefile
- Timestamp:
- 04/20/07 12:10:39 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r1305 r1343 1 ifndef ASAPROOT 2 ASAPROOT := $(shell pwd) 3 endif 1 # Makefile to make integration into IDE's easier as they don't (yet) support scons 4 2 5 PREFIX := /Library/Frameworks/Python.framework/Versions/2.4 6 PYDIR := $(PREFIX)/lib/python2.4/site-packages 7 8 9 PY := $(wildcard python/*.py) 10 LIBS := src/_asap.so 11 BINS := bin/asap 12 13 CASAROOT := $(word 1, $(AIPSPATH)) 14 PLATFORM := $(word 2, $(AIPSPATH)) 15 DISTDIR := asap_$(PLATFORM) 16 17 all: module #doc 18 19 module: 20 @cd $(ASAPROOT)/src; make 21 22 doc: 23 @cd $(ASAPROOT)/doc; make 24 25 install: 26 @if ( test ! -d $(PYDIR)/asap ) ; then mkdir -p $(PYDIR)/asap ; fi 27 @if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi 28 @for file in $(LIBS) ; do cp -f $$file $(PYDIR)/asap ; done 29 @for file in $(BINS) ; do cp -f $$file $(PREFIX)/bin ; done 30 @for file in $(PY) ; do cp -f $$file $(PYDIR)/asap ; done 31 @if ( test ! -d $(PREFIX)/share/asap ) ; then mkdir -p $(PREFIX)/share/asap ; fi 32 @cp -f share/ipythonrc-asap $(PREFIX)/share/asap/ 33 @echo "Successfully installed asap module to" $(PYDIR) 3 all: 4 @$(SCONS) 34 5 35 6 clean: 36 @cd $(ASAPROOT)/src; make clean 37 @cd $(ASAPROOT)/doc; make clean 38 39 datadist: 40 @echo "Generating ASAP data archive from aips++ installation..." 41 @cd $(CASAROOT); tar cfj $(ASAPROOT)/$(DISTDIR)/share/data.tar.bz2 data/ephemerides data/geodetic 42 @echo "...done." 43 44 45 dist: module doc 46 @cd $(ASAPROOT) 47 @if ( test -d $(DISTDIR) ) ; then rm -rf $(DISTDIR) ; fi 48 @mkdir $(DISTDIR) 49 @mkdir $(DISTDIR)/build $(DISTDIR)/bin $(DISTDIR)/share 50 @for file in $(LIBS) ; do cp -f $$file $(DISTDIR)/build/ ; done 51 @for file in $(PY) ; do cp -f $$file $(DISTDIR)/build/ ; done 52 @for file in $(BINS) ; do cp -f $$file $(DISTDIR)/bin/ ; done 53 @cp -f share/ipythonrc-asap $(DISTDIR)/share/ 54 make datadist 55 @cp -f doc/README $(DISTDIR)/ 56 @cp -f doc/CHANGELOG $(DISTDIR)/ 57 @cp -f bin/install.sh $(DISTDIR)/bin/ 58 @echo "Creating compressed archive..." 59 @tar jcf $(DISTDIR).tar.bz2 $(DISTDIR) 60 @rm -rf $(DISTDIR)/ 61 @echo "Successfully created binary package" $(DISTDIR).tar.bz2 62 63 .PHONY: install clean 7 @$(SCONS) -c
Note:
See TracChangeset
for help on using the changeset viewer.