source: trunk/WRF.COMMON/WRFV3/external/io_grib_share/build/config_rules.mk @ 2759

Last change on this file since 2759 was 2759, checked in by aslmd, 2 years ago

adding unmodified code from WRFV3.0.1.1, expurged from useless data +1M size

File size: 1.4 KB
Line 
1#------------------------------------------------------------------------------
2#  Make rules for installing optional configuration files.
3#
4#  This file is intended for use in Makefile via the include directive, e.g.
5#
6#      include $(BUILD_DIR)/config_rules.mk
7#
8#  It is assumed that the environment has been set by sourcing the build
9#  resource file (buildrc).
10#
11#  This file defines the following rules:
12#
13#      config
14#
15#  Copyright (C) 2002, WSI Corporation
16#------------------------------------------------------------------------------
17#
18#  For portability, use the Bourne shell within Makefiles.
19#  There have been problems using the C-shell under Linux.
20#
21SHELL=/bin/sh
22
23#
24#  The config rules install any files under the directory config into the
25#  project's configuration directory.  Any directory structure beneath
26#  the local config directory will be preserved.  However, the special
27#  CVS directory will NOT be copied.
28#
29config: .FORCE
30        @if [ -d config ]; then\
31                cd config;\
32                l=* ; \
33                if [ -z "$${l}" ]; then \
34                        echo "Error: empty config directory.";\
35                        l="CVS" ;\
36                fi;\
37                for f in $$l; do\
38                        if [ "$$f" = "CVS" ]; then\
39                                continue;\
40                        fi;\
41                        cp -ur $$f $(BASE_DIR)/config;\
42                        if [ -d $$f ]; then\
43                                find $(BASE_DIR)/config/$$f -name 'CVS' -exec rm -fr {} > /dev/null 2>&1 \;  ;\
44                        fi;\
45                done;\
46                cd ..;\
47        fi
48
49.FORCE:
50
51
52# DO NOT DELETE THIS LINE -- make depend depends on it.
Note: See TracBrowser for help on using the repository browser.