2 CMD = Run/wrf_hydro.exe
7 @if [ ! -d "Run" ]; then \
10 (rm -f Run/wrf_hydro.exe )
11 (make -f Makefile.comm BASIC)
12 @if [ -d "LandModel_cpl" ]; then \
13 (cd LandModel_cpl; make) \
15 if [ $(WRF_HYDRO_RAPID) -eq 1 ]; then \
16 (cd lib;rm -f librapid.a); \
18 if [ $(WRF_HYDRO_RAPID) -eq 1 ]; then \
19 (cd Rapid_routing; make -f makefile.cpl rapid); \
22 @if [ -d "LandModel" ]; then \
23 (cd LandModel; make ) \
27 @echo 'F90FLAGS := $$(DEBUGFLAGS) $$(F90FLAGS)' >> ./macros
28 @echo 'F90FLAGS := $$(DEBUGFLAGS) $$(F90FLAGS)' >> ./LandModel/user_build_options
32 -rm -f ./Run/wrf_hydro.exe; \
33 mv ./Run/Noah_hrldas_beta ./Run/wrf_hydro.exe
35 @echo "No libraries or utilities are built, skip testing."
37 @if [ -d "LandModel_cpl" ]; then \
38 (cd LandModel_cpl; make clean) \
40 (make -f Makefile.comm clean)
41 @if [ -d "LandModel" ]; then \
42 (cd LandModel; make clean) \
44 if [ $(WRF_HYDRO_RAPID) -eq 1 ]; then \
45 (cd Rapid_routing; make -f makefile.cpl clean); \
47 (rm -f */*.mod */*.o lib/*.a Run/wrf_hydro.exe)