-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 988 Bytes
/
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
.PHONY: sswdeps help doc
FLAGS=
VERBOSE=0
GIT=/usr/bin/git
REVISION:=$(shell $(GIT) rev-parse --short HEAD)
PHONE=$(shell cat $(HOME)/.phonenumber 2> /dev/null)
EMAIL=$(USER)@ucar.edu
IDL=idl
SSWDEPS_IDL=idl85
ifeq ($(VERBOSE), 1)
ECHO_PREFIX=
else
ECHO_PREFIX=@
endif
SSW_DIR=$(PWD)/ssw
GEN_DIR=$(PWD)/gen
LIB_DIR=$(PWD)/lib
KCOR_SRC_DIR=$(PWD)/src
KCOR_PATH=+$(KCOR_SRC_DIR):$(SSW_DIR):$(GEN_DIR):+$(LIB_DIR):"<IDL_DEFAULT>"
FULL_SSW_DIR=/hao/contrib/ssw
SSW_DEP_PATH="<IDL_DEFAULT>":$(KCOR_PATH):+$(FULL_SSW_DIR)
sswdeps:
@echo "Find ROUTINES..."
$(ECHO_PREFIX)find src -name '*.pro' -exec basename {} .pro \; > ROUTINES
$(ECHO_PREFIX)find gen -name '*.pro' -exec basename {} .pro \; >> ROUTINES
@echo "Starting IDL..."
$(ECHO_PREFIX)$(SSWDEPS_IDL) -IDL_STARTUP "" -IDL_PATH $(SSW_DEP_PATH) -e "kcor_find_ssw_dependencies, '$(FULL_SSW_DIR)'"
help:
@echo "Makefile targets:"
@echo " sswdeps find SSW IDL not in ssw/ directory"
doc:
$(IDL) -e kcor_utils_doc