-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathGNUmakefile
54 lines (45 loc) · 1.72 KB
/
GNUmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#-------------------------------------------------------------------------------
# Guru Makefile for gmt-mex directory
#
# !!! THIS MAKEFILE IS FOR GMT-MEX DEVELOPERS ONLY !!!
#
# This makefile simply makes a tar ball of /opt/gmt.
#
# Author: Paul Wessel, SOEST, University of Hawaii
#
# Date: 1-JAN-2024
#-------------------------------------------------------------------------------
include Makefile
GNUTAR = $(shell which gnutar || which gtar || which tar)
help::
@grep '^#!' GNUmakefile | cut -c3-
#!---------------- MAKE HELP FOR GMT-MEX GURUS ----------------
#!
#!opt : Duplicate active GMT distro to /opt/gmt and re-baptize
#!build : Configure, build and install the gmt mex files into /opt/gmt/bin
#!tar : Create a tar ball of the mex/gmt biinary distro
#!update : Call git pull
#!wipe : Remove mex-* tarballs
#!latest-config : Update the configure include files
#!
opt:
@echo "[Running `ls /Applications/GMT-6.5.0.app/Contents/Resources/share/tools/gmt_prepmex.sh | tail -1`]"; echo ""
@`/Applications/GMT-6.5.0.app/Contents/Resources/share/tools/gmt_prepmex.sh | tail -1`
latest-config:
curl "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" -s -R -o config.sub
curl "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" -s -R -o config.guess
build:
autoconf
gmtswitch /opt/gmt
configure --enable-matlab --enable-debug
make all
make install
tar:
COPYFILE_DISABLE=true $(GNUTAR) --owner 0 --group 0 --mode a=rX,u=rwX --absolute-names \
-cvjf mex-gmt-`gmt --version`-darwin-`uname -m`.tbz /opt/gmt
update:
git pull
wipe:
rm -f mex-gmt-*-darwin-`uname -m`.tbz
report:
echo "make mex-gmt-`gmt --version`-darwin-`uname -m`.tbz"