2 Star 2 Fork 1

董理/LAPS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 6.82 KB
一键复制 编辑 原始数据 按行查看 历史
董理 提交于 2017-06-12 22:39 . Refactor codes
# User options are in src/include/makefile.inc
# This Makefile is designed for gnu make version 3.75 or newer
# Please report problems to [email protected]
SRCROOT=.
include $(SRCROOT)/src/include/makefile.inc
LINK=$(SRCROOT)/util/link.pl
CWD = $(shell pwd)
MACHDEP = config.log config.status config.cache src/include/config.h
LIBDIRS = src/lib/modules \
src/lib/w3lib \
src/lib/g2lib \
src/lib/degrib \
src/lib \
src/lib/bgdata \
src/lib/blas \
src/lib/cloud \
src/lib/fm \
src/lib/grib \
src/lib/grib2 \
src/lib/goesinav \
src/lib/goeslib \
src/lib/lapack \
src/lib/mthermo \
src/lib/nav \
src/lib/opt90 \
src/lib/powell \
src/lib/radar/moving \
src/lib/radar/remap_ftn \
src/lib/radar/rutil \
src/lib/radar/synp \
src/lib/radar/wsi_ingest \
src/lib/satellite \
src/lib/temp \
src/lib/util \
src/lib/wind \
src/var/bufr
EXEDIRS = src/accum \
src/background \
src/balance \
src/cloud \
src/deriv \
src/ensemble \
src/grid \
src/humid \
src/humid/optran_setup \
src/ingest/acars \
src/ingest/obs_convert \
src/ingest/profiler \
src/ingest/radar/mosaic \
src/ingest/radar/remap \
src/ingest/radar/wsiremap/ln3 \
src/ingest/radar/wsiremap/vrc \
src/ingest/raob \
src/ingest/rass \
src/ingest/sao \
src/ingest/satellite/cloud_drift \
src/ingest/satellite/lvd \
src/ingest/satellite/sounding \
src/lapsprep \
src/laps2grib \
src/lfmregrid \
src/newlfmp \
src/wfoprep \
src/sfc \
src/sfc/table \
src/mesowave/recurs_iter \
src/mesowave/stmas_mg \
src/soil \
src/temp \
src/verif/cont \
src/verif/fcst \
src/verif/point \
src/wind \
src/var \
src/stmas
all: exe
debug: debuglib
#
# The following targets are for building within awips 4.2
#
buildlib: lib
buildexe: exe
doc:
depend:
prebuild:
localize: mkdatadirs
$(PERL) $(SRCROOT)/etc/laps_localization.pl --lapsroot=$(INSTALLROOT) \
--dataroot=$(DATAROOT) --srcroot=$(SRCROOT)
exe: lib
@for dir in $(EXEDIRS); do \
echo " ";\
echo Making LAPS in directory $$dir ;\
(cd $$dir; if [ $$? != 0 ] ; then \
echo "Exit status from cd $$dir was $$?" ; exit 1 ; fi ;\
$(MAKE) all ; if [ $$? != 0 ] ; then \
echo "Exit status from make was $$?" ; exit 1 ; fi ;) ;\
done
lib:
@for dir in $(LIBDIRS) ;\
do \
echo " ";\
echo Making Laps in directory $$dir ;\
(cd $$dir; if [ $$? != 0 ] ; then \
echo "Exit status from cd $$dir was $$?" ; exit 1 ; fi ;\
$(MAKE) all ; if [ $$? != 0 ] ; then \
echo "Exit status from make was $$?" ; exit 1 ; fi ;) ;\
done
debuglib:
@for dir in $(LIBDIRS) ;\
do \
echo " ";\
echo Making Laps in directory $$dir ;\
(cd $$dir; if [ $$? != 0 ] ; then \
echo "Exit status from cd $$dir was $$?" ; exit 1 ; fi ;\
$(MAKE) debug ; if [ $$? != 0 ] ; then \
echo "Exit status from make was $$?" ; exit 1 ; fi ;) ;\
done
lapsplot: lib
cd src/lapsplot; $(MAKE)
install_lapsplot: lib
cd src/lapsplot; $(MAKE) install
ldmtools:
cd src/ldmtools; $(MAKE)
install_ldmtools:
cd src/ldmtools; $(MAKE) install
wfopost: lib
cd src/WFO/post; $(MAKE)
install_wfopost: lib
cd src/WFO/post; $(MAKE) install
ridds:
cd $(SRCROOT)/src/lib/radar/nexrad_nssl; $(MAKE)
cd $(SRCROOT)/src/lib/radar/a2io; $(MAKE)
cd $(SRCROOT)/src/ingest/radar/circbuff_to_nc; $(MAKE)
install: mkdirs mkdatadirs
@for dir in $(LIBDIRS) $(EXEDIRS);\
do \
echo " ";\
echo Making Laps in directory $$dir ;\
(cd $$dir; if [ $$? != 0 ] ; then \
echo "Exit status from cd $$dir was $$?" ; exit 1 ; fi ;\
$(MAKE) install ; if [ $$? != 0 ] ; then \
echo "Exit status from make was $$?" ; exit 1 ; fi ;) ;\
done
install_ibm: mkdirs mkdatadirs
@for dir in $(EXEDIRS);\
do \
echo " ";\
echo Making Laps in directory $$dir ;\
(cd $$dir; if [ $$? != 0 ] ; then \
echo "Exit status from cd $$dir was $$?" ; exit 1 ; fi ;\
$(MAKE) install ; if [ $$? != 0 ] ; then \
echo "Exit status from make was $$?" ; exit 1 ; fi ;) ;\
done
mkdirs:
mkdir -p $(INSTALLROOT)
ls -l $(SRCROOT)/util; cp -pr $(SRCROOT)/util $(INSTALLROOT) ; ls -l $(INSTALLROOT)/util
ls -l $(SRCROOT)/etc; cp -pr $(SRCROOT)/etc $(INSTALLROOT) ; ls -l $(INSTALLROOT)/etc
mkdatadirs:
$(PERL) $(SRCROOT)/etc/makedatadirs.pl --srcroot=$(SRCROOT) --installroot=$(INSTALLROOT) \
--dataroot=$(DATAROOT) --system_type='laps'
mkgui: cgui cguiinstall
$(PERL) $(SRCROOT)/gui/make_gui.pl --source_root=$(CWD) --installroot=$(INSTALLROOT)
cgui:
(cd $(SRCROOT)/gui/src/ ; \
$(MAKE) )
cguiinstall:
(cd $(SRCROOT)/gui/src/ ; \
$(MAKE) install )
clean:
$(RM) *~ *# *.o
cd src/include; $(RM) *~ *# *.o
@for dir in $(EXEDIRS);\
do \
echo " ";\
echo Making LAPS clean in directory $$dir ;\
(cd $$dir; if [ $$? != 0 ] ; then \
echo "Exit status from cd $$dir was $$?" ; exit 1 ; fi ;\
$(MAKE) clean ; if [ $$? != 0 ] ; then \
echo "Exit status from make was $$?" ; exit 1 ; fi ;) ;\
done
rm -rf config.* confftest.f testbyte*
realclean: cleanlib clean
cleanlib:
@for dir in $(LIBDIRS);\
do \
echo " ";\
echo Making LAPS clean in directory $$dir ;\
(cd $$dir; if [ $$? != 0 ] ; then \
echo "Exit status from cd $$dir was $$?" ; exit 1 ; fi ;\
$(MAKE) clean ; if [ $$? != 0 ] ; then \
echo "Exit status from make was $$?" ; exit 1 ; fi ;) ;\
done
distclean: realclean cleandirs
@for dir in $(LIBDIRS) $(EXEDIRS);\
do \
echo " ";\
echo Making LAPS distclean in directory $$dir ;\
(cd $$dir; if [ $$? != 0 ] ; then \
echo "Exit status from cd $$dir was $$?" ; exit 1 ; fi ;\
$(MAKE) distclean ; if [ $$? != 0 ] ; then \
echo "Exit status from make was $$?" ; exit 1 ; fi ;) ;\
done
$(RM) $(MACHDEP) \
./util/cronfile ./etc/*.pl ./etc/*.csh ; \
$(RM) -r ./bin ./log
cleandirs:
$(PERL) $(SRCROOT)/etc/makedatadirs.pl --srcroot=$(SRCROOT) --installroot=$(INSTALLROOT) \
--dataroot=$(DATAROOT) --cleandirs
links:
$(LINK) $(CWD) $(SRCROOT) $(INSTALLROOT)/lib $(MACHDEP)
@for dir in $(LIBDIRS) $(EXEDIRS);\
do \
echo " ";\
echo Making LAPS links in directory $$dir ;\
(cd $$dir; if [ $$? != 0 ] ; then \
echo "Exit status from cd $$dir was $$?" ; exit 1 ; fi ;\
$(MAKE) links ; if [ $$? != 0 ] ; then \
echo "Exit status from make was $$?" ; exit 1 ; fi ;) ;\
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dongli85/LAPS.git
[email protected]:dongli85/LAPS.git
dongli85
LAPS
LAPS
master

搜索帮助