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:
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.
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.
30 @if
[ -d config
]; then\
33 if
[ -z
"$${l}" ]; then \
34 echo
"Error: empty config directory.";\
38 if
[ "$$f" = "CVS" ]; then\
41 cp
-ur
$$f $(BASE_DIR
)/config
;\
43 find
$(BASE_DIR
)/config
/$$f -name
'CVS' -exec
rm -fr
{} > /dev
/null
2>&1 \
; ;\
52 # DO NOT DELETE THIS LINE -- make depend depends on it.