aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/examples/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/examples/Makefile b/tools/examples/Makefile
index 1f57924338..fba54aae44 100644
--- a/tools/examples/Makefile
+++ b/tools/examples/Makefile
@@ -11,7 +11,10 @@ install: all
mkdir -p $(prefix)/etc/xc/auto
mkdir -p $(prefix)/etc/init.d
install -m0755 $(INSTALL) $(prefix)/usr/bin
- install -m0644 $(ETC) $(prefix)/etc/xc
+ for i in $(ETC); \
+ do [ -a $(prefix)/etc/xc/$$i ] || \
+ install -m0644 $$i $(prefix)/etc/xc; \
+ done
install -m0755 $(INITD) $(prefix)/etc/init.d
clean: