forked from usgs/earthquake-global_vs30
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (43 loc) · 1.11 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
#
# Top-level Makefile for the Vs30 project
#
#
# Edit the list below to include only the insert maps you want
# in the final product. "Slope" should always be the first
# item in the list. Add new map directories here, and in
# MKDIRS, below.
#
INSERT_MAPS = Slope \
California \
PNW \
Utah \
Japan \
Taiwan \
NZ
#
# This should be a complete list of subdirectories so that
# the clean and veryclean targets can do their thing. Add
# new map directories here, and in INSERT_MAPS, above.
#
MKDIRS = src \
Slope \
California \
PNW \
Utah \
Japan \
Taiwan \
NZ
MKDIRS_CLEAN = $(patsubst %,%.clean,$(MKDIRS))
MKDIRS_VCLEAN = $(patsubst %,%.vclean,$(MKDIRS))
.PHONY: all slope clean veryclean $(INSERT_MAPS) $(MKDIRS_CLEAN) $(MKDIRS_VCLEAN)
all : $(INSERT_MAPS)
clean : $(MKDIRS_CLEAN)
veryclean : $(MKDIRS_VCLEAN)
spotless : veryclean
$(RM) global_vs30*.grd
$(INSERT_MAPS) :
$(MAKE) -C $@
$(MKDIRS_CLEAN) :
$(MAKE) -C $(@:.clean=) clean
$(MKDIRS_VCLEAN) :
$(MAKE) -C $(@:.vclean=) veryclean