updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / external / io_grib_share / build / config_rules.mk
blob193af30bb38c2cf9a2ac6d718c6fa6ea0279eeb9
1 #------------------------------------------------------------------------------
2 # Make rules for installing optional configuration files.
4 # This file is intended for use in Makefile via the include directive, e.g.
6 # include $(BUILD_DIR)/config_rules.mk
8 # It is assumed that the environment has been set by sourcing the build
9 # resource file (buildrc).
11 # This file defines the following rules:
13 # config
15 # Copyright (C) 2002, WSI Corporation
16 #------------------------------------------------------------------------------
18 # For portability, use the Bourne shell within Makefiles.
19 # There have been problems using the C-shell under Linux.
21 SHELL=/bin/sh
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.
29 config: .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
49 .FORCE:
52 # DO NOT DELETE THIS LINE -- make depend depends on it.