source: trunk/Makefile@ 3028

Last change on this file since 3028 was 2998, checked in by Kana Sugimoto, 10 years ago

r2993 | KanaSugimoto | 2014-10-15 20:32:13 +0900 (Wed, 15 Oct 2014) | 14 lines

New Development: No

JIRA Issue: No

Ready for Test: Yes/No

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: creating a test branch to merge from NRAO repository



r2994 | KanaSugimoto | 2014-10-15 20:51:59 +0900 (Wed, 15 Oct 2014) | 3 lines

Initialized merge tracking via "svnmerge" with revisions "1-31330" from
https://svn.cv.nrao.edu/svn/casa/branches/personal/kana/test-merge-43-01/asap


r2995 | KanaSugimoto | 2014-10-15 21:15:27 +0900 (Wed, 15 Oct 2014) | 3 lines

Initialized merge tracking via "svnmerge" with revisions "1-31330" from
https://svn.cv.nrao.edu/svn/casa/branches/personal/kana/test-merge-43-01/asap


r2996 | KanaSugimoto | 2014-10-15 21:24:23 +0900 (Wed, 15 Oct 2014) | 20 lines

Merged revisions 31331 via svnmerge from
https://svn.cv.nrao.edu/svn/casa/branches/personal/kana/test-merge-43-01/asap

........

r31331 | kana.sugimoto | 2014-10-15 21:06:50 +0900 (Wed, 15 Oct 2014) | 14 lines



New Development: Yes/No

JIRA Issue: No/Yes List JIRA ticket.

Ready for Test: Yes/No

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: dummy commit



........


r2997 | KanaSugimoto | 2014-10-15 21:48:06 +0900 (Wed, 15 Oct 2014) | 17 lines

Merged revisions 31332-31334 via svnmerge from
https://svn.cv.nrao.edu/svn/casa/branches/personal/kana/test-merge-43-01/asap

........

r31332 | kana.sugimoto | 2014-10-15 21:30:59 +0900 (Wed, 15 Oct 2014) | 1 line


A minor modification to a comment

........

r31333 | kana.sugimoto | 2014-10-15 21:36:19 +0900 (Wed, 15 Oct 2014) | 1 line


Removed a white line

........

r31334 | kana.sugimoto | 2014-10-15 21:39:32 +0900 (Wed, 15 Oct 2014) | 1 line


Put back year change

........


File size: 2.8 KB
RevLine 
[1757]1### Notice:
2### This Makefile assumes CASA+CASACore enviroment.
3### For who wants to build ASAP with older CASA without CASACore
4### environment, replace $(CASAPATH) with $(AIPSPATH).
5#for mac
6#PREFIX := /opt/casa/darwin
7#for linux
8PREFIX := $(word 1, $(CASAPATH))/$(word 2,$(CASAPATH))
[1894]9PYTHONVER := $(shell $(shell make -s -f $(PREFIX)/makedefs VARS=PYTHONVER eval_vars) && echo $$PYTHONVER)
10PYDIR := $(PREFIX)/python/$(PYTHONVER)
[1757]11
12ifndef ASAPROOT
13 ASAPROOT := $(shell pwd)
14endif
[1877]15ATNFD := external-alma
[1899]16PYRAPD := external/libpyrap
[1757]17
18#PY := $(wildcard python/*.py)
19PY := $(wildcard python/*.py python/svninfo.txt)
[1849]20LIBS := /tmp/_asap.so
[1757]21BINS := bin/asap
[1761]22APPS := apps/asap2to3
[1757]23
24CASAROOT := $(word 1, $(CASAPATH))
25PLATFORM := $(word 2, $(CASAPATH))
26DISTDIR := asap_$(PLATFORM)
27
28all: module #doc
29
30module:
31 @if ( test -f getsvnrev.sh ) ; then /bin/bash getsvnrev.sh ; fi
[1899]32 @cd $(ASAPROOT)/$(PYRAPD); make
[1877]33 @cd $(ASAPROOT)/$(ATNFD); make
[1757]34 @cd $(ASAPROOT)/src; make
[1761]35 @cd $(ASAPROOT)/apps; make
[1757]36
37doc:
38 @cd $(ASAPROOT)/doc; make
39
40
41install:
42 @if ( test -f getsvnrev.sh ) ; then /bin/bash getsvnrev.sh ; fi
43 @if ( test ! -d $(PYDIR)/asap ) ; then mkdir -p $(PYDIR)/asap ; fi
44 @if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
[1915]45 @cd $(ASAPROOT)/$(ATNFD); make install
46 @cd $(ASAPROOT)/$(PYRAPD); make install
[1757]47 @for file in $(LIBS) ; do cp -f $$file $(PYDIR)/asap ; done
48 @for file in $(BINS) ; do cp -f $$file $(PREFIX)/bin ; done
49 @for file in $(PY) ; do cp -f $$file $(PYDIR)/asap ; done
50 @if ( test ! -d $(PREFIX)/share/asap ) ; then mkdir -p $(PREFIX)/share/asap ; fi
51 @cp -f share/ipythonrc-asap $(PREFIX)/share/asap/
[1915]52 @for file in $(APPS) ; do cp -f $$file $(PREFIX)/bin ; done
[1757]53 @echo "Successfully installed asap module to" $(PYDIR)
54
55clean:
56 @cd $(ASAPROOT)/src; make clean
[1894]57# @cd $(ASAPROOT)/doc; make clean
[1877]58 @cd $(ASAPROOT)/$(ATNFD); make realclean
[1894]59 @cd $(ASAPROOT)/apps; make clean
[1899]60 @cd $(ASAPROOT)/$(PYRAPD); make clean
[1757]61
62datadist:
63 @echo "Generating ASAP data archive from aips++ installation..."
64 @cd $(CASAROOT); tar cfj $(ASAPROOT)/$(DISTDIR)/share/data.tar.bz2 data/ephemerides data/geodetic
65 @echo "...done."
66
67
68dist: module doc
69 @cd $(ASAPROOT)
70 @if ( test -d $(DISTDIR) ) ; then rm -rf $(DISTDIR) ; fi
71 @mkdir $(DISTDIR)
72 @mkdir $(DISTDIR)/build $(DISTDIR)/bin $(DISTDIR)/share
73 @for file in $(LIBS) ; do cp -f $$file $(DISTDIR)/build/ ; done
74 @for file in $(PY) ; do cp -f $$file $(DISTDIR)/build/ ; done
75 @for file in $(BINS) ; do cp -f $$file $(DISTDIR)/bin/ ; done
76 @cp -f share/ipythonrc-asap $(DISTDIR)/share/
77 make datadist
78 @cp -f doc/README $(DISTDIR)/
79 @cp -f doc/CHANGELOG $(DISTDIR)/
80 @cp -f bin/install.sh $(DISTDIR)/bin/
81 @echo "Creating compressed archive..."
82 @tar jcf $(DISTDIR).tar.bz2 $(DISTDIR)
83 @rm -rf $(DISTDIR)/
84 @echo "Successfully created binary package" $(DISTDIR).tar.bz2
85
86.PHONY: install clean
Note: See TracBrowser for help on using the repository browser.