forked from NGenetzky/espa-surface-reflectance
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
95 lines (71 loc) · 2.97 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
#-----------------------------------------------------------------------------
# Makefile
#
# Project Name: surface reflectance
#-----------------------------------------------------------------------------
.PHONY: check-environment all install clean all-script install-script clean-script all-ledaps install-ledaps clean-ledaps all-ledaps-aux install-ledaps-aux clean-ledaps-aux all-lasrc install-lasrc clean-lasrc all-lasrc-aux install-lasrc-aux clean-lasrc-aux all-aux install-aux
include make.config
DIR_LEDAPS = ledaps
DIR_LaSRC = lasrc
#-----------------------------------------------------------------------------
all: all-script all-ledaps all-lasrc
install: check-environment install-script install-ledaps install-lasrc
clean: clean-script clean-ledaps clean-lasrc
#-----------------------------------------------------------------------------
all-script:
echo "make all in scripts"; \
(cd scripts; $(MAKE) all);
install-script:
echo "make install in scripts"; \
(cd scripts; $(MAKE) install);
clean-script:
echo "make clean in scripts"; \
(cd scripts; $(MAKE) clean);
#-----------------------------------------------------------------------------
all-lasrc:
echo "make all in $(DIR_LaSRC)"; \
(cd $(DIR_LaSRC); $(MAKE) all-lasrc);
install-lasrc:
echo "make install in $(DIR_LaSRC)"; \
(cd $(DIR_LaSRC); $(MAKE) install-lasrc);
clean-lasrc:
echo "make clean in $(DIR_LaSRC)"; \
(cd $(DIR_LaSRC); $(MAKE) clean-lasrc);
#-----------------------------------------------------------------------------
all-lasrc-aux:
echo "make all in $(DIR_LaSRC)"; \
(cd $(DIR_LaSRC); $(MAKE) all-lasrc-aux);
install-lasrc-aux:
echo "make install in $(DIR_LaSRC)"; \
(cd $(DIR_LaSRC); $(MAKE) install-lasrc-aux);
clean-lasrc-aux:
echo "make clean in $(DIR_LaSRC)"; \
(cd $(DIR_LaSRC); $(MAKE) clean-lasrc-aux);
#-----------------------------------------------------------------------------
all-ledaps:
echo "make all in $(DIR_LEDAPS)"; \
(cd $(DIR_LEDAPS); $(MAKE) all-ledaps);
install-ledaps:
echo "make install in $(DIR_LEDAPS)"; \
(cd $(DIR_LEDAPS); $(MAKE) install-ledaps);
clean-ledaps:
echo "make clean in $(DIR_LEDAPS)"; \
(cd $(DIR_LEDAPS); $(MAKE) clean-ledaps);
#-----------------------------------------------------------------------------
all-ledaps-aux:
echo "make all in $(DIR_LEDAPS)"; \
(cd $(DIR_LEDAPS); $(MAKE) all-ledaps-aux);
install-ledaps-aux:
echo "make install in $(DIR_LEDAPS)"; \
(cd $(DIR_LEDAPS); $(MAKE) install-ledaps-aux);
clean-ledaps-aux:
echo "make clean in $(DIR_LEDAPS)"; \
(cd $(DIR_LEDAPS); $(MAKE) clean-ledaps-aux);
#-----------------------------------------------------------------------------
all-aux: all-ledaps-aux all-lasrc-aux
install-aux: install-ledaps-aux install-lasrc-aux
#-----------------------------------------------------------------------------
check-environment:
ifndef PREFIX
$(error Environment variable PREFIX is not defined)
endif