forked from PaulWessel/gsfml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
95 lines (73 loc) · 2.56 KB
/
Makefile
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Global Seafloor Fabric and Magnetic Lineations
# Makefile for SFDATA, MLDATA, and HELLDATA directories
# Set the current host file
include host.gsfml
help::
@grep '^#!' Makefile | cut -c3-
#!-------------------- MAKE HELP FOR GSFML --------------------
#!
#!make <target>, where <target> can be:
#!
#!site : Update the top-level web page directory
#!master_fs : Update the SF master table
#!map : Update the GSFML global map
#!build : Build the latest SF, ML, HELL files
#!SF : Build the latest SF site and distribution files
#!ML : Build the latest ML site and distribution files
#!HELL : Build the latest HELL site and distribution files
#!TOOL : Build the latest TOOLS tarball
#!latest : Build the latest test GSFML distribution
#!release : Build the latest offical GSFML distribution
#!place_sf : Place SF distribution on imina under GSFML
#!place_ml : Place ML distribution on imina under GSFML
#!place_hell : Place HELL distribution on imina under GSFML
#!place : Place GSFML distribution on ftp server PT dir
#!clean : Remove GSFML distribution from directory
#!---------------------------------------------------------------
# Build the master SFtable
master_fs:
(cd SFDATA; ./sf_master.sh)
# Create the GSFML release
release: build place map
#ADMIN/build_release.sh day
clean: clean_fz clean_ml
spotless: clean
rm -f GSFML_gmtfiles.tbz GSFML_shapefiles.zip GSFML.kmz
map:
cd ADMIN; sh gsfml_map.sh
scp ADMIN/GSFML_map.pdf ADMIN/GSFML_map_small.jpg $(HOST):$(DIR)
site:
scp ADMIN/EarthByte_*.png $(HOST):$(DIR)
scp ADMIN/soest_uhm_transp.png ADMIN/logo-nsf.png $(HOST):$(DIR)
scp ADMIN/GSFML.png $(HOST):$(DIR)
scp ADMIN/{FZ,HELL,ML}.png $(HOST):$(DIR)
scp ADMIN/*.html $(HOST):$(DIR)
place: place_sf place_ml place_hell
place_sf:
ssh $(HOST) 'rm -rf $(DIR)/SF'
cd SFDATA; scp -r SF $(HOST):$(DIR)
place_ml:
ssh $(HOST) 'rm -rf $(DIR)/ML'
cd MLDATA; scp -r ML $(HOST):$(DIR)
place_hell:
ssh $(HOST) 'rm -rf $(DIR)/HELL'
cd HELLDATA; scp -r HELL $(HOST):$(DIR)
place_tool:
ssh $(HOST) 'rm -rf $(DIR)/gmt-gsfml-*-src.tar.bz2'
scp -r gmt-gsfml-*-src.tar.bz2 $(HOST):$(DIR)
clean_fz:
rm -f GSFML_SF*.*
clean_ml:
rm -f GSFML_ML*.*
build: SF ML HELL
SF:
cd SFDATA; sh build_SF_site.sh
ML:
cd MLDATA; sh build_ML_site.sh
HELL:
cd HELLDATA; sh build_HELL_site.sh
TOOL:
cd TOOLS; make update; make includes; make all; make archive
#place_img:
# scp ADMIN/GSFML_map_full.jpg ftp:/export/ftp1/ftp/pub/PT
# scp ADMIN/GSFML_map_small.jpg imina:/export/imina2/httpd/htdocs/PT/GSFML