-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile_local
More file actions
executable file
·65 lines (59 loc) · 2.17 KB
/
Makefile_local
File metadata and controls
executable file
·65 lines (59 loc) · 2.17 KB
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
# -*- makefile -*-
#####################################################################
# #
# Make file for Space Weather/Radiation related Sites #
# #
# this version just changes the local files and does not #
# copy the scripts from the source directory #
# #
# author: t isobe (tisobe@cfa.harvard.edu) #
# last update: Mar 26, 2020 #
# #
#####################################################################
#
#--- Change the following lines to appropriate ones
#
# TASK: task name; the script will be kept there
# NROOT: main script directory
# NHTML: main web directory
# NADDRESS: web address
#
TASK = Space_Weather
VERSION = 1.0
NROOT = /data/mta/Script
NMAIN = $(NROOT)/$(TASK)
NHTML = /data/mta_www/MIRROR/Space_Weather
NADDRESS = cxc.cfa.harvard.edu
#
#--- changing lines in scripts (they will be replaced by the lines defined above)
#
OROOT = /data/mta4
OMAIN = $(OROOT)/Space_Weather
OHTML = /data/mta4/www/RADIATION
SHTML = /data/mta4/Space_Weather/Web_dir
OADDRESS = cxc.cfa.harvard.edu
#
#--- Define lists of sub directories
#
M_LIST = ACE ACIS_Rad ALERTS Comm_data CRM3 EPHEM GOES GSM_plots KP MTA_Rad SOHO TLE XMM
N_LIST = house_keeping Doc
install:
for ENT in $(wildcard $(NMAIN)/*/Scripts/*); do \
sed -i "s,$(OMAIN),$(NMAIN),g" $$ENT;\
sed -i "s,$(OHTML),$(NHTML),g" $$ENT;\
sed -i "s,$(OMAIN),$(NMAIN),g" $$ENT;\
sed -i "s,$(OROOT),$(NROOT),g" $$ENT;\
done
for ENT in $(wildcard $(NMAIN)/*/Scripts/Template/*); do \
sed -i "s,$(OADDRESS),$(NADDRESS),g" $$ENT;\
sed -i "s,$(OHTML),$(NHTML),g" $$ENT;\
sed -i "s,$(OMAIN),$(NMAIN),g" $$ENT;\
sed -i "s,$(OROOT),$(NROOT),g" $$ENT;\
done
for ENT in $(wildcard $(NMAIN)/house_keeping/* $(NMAIN)/CRMFLX/* $(NMAIN)/geopack/*); do \
sed -i "s,$(OADDRESS),$(NADDRESS),g" $$ENT;\
sed -i "s,$(OHTML),$(NHTML),g" $$ENT;\
sed -i "s,$(OMAIN),$(NMAIN),g" $$ENT;\
sed -i "s,$(OROOT),$(NROOT),g" $$ENT;\
done
gfortran -std=legacy -ffixed-form -fd-lines-as-comments -ffixed-line-length-none $(NMAIN)/CRM3/Scripts/runcrm.f $(NMAIN)/CRMFLX/CRMFLX_V33/CRMFLX_V33.f -o $(NMAIN)/CRM3/Scripts/runcrm