Makefile
changeset 1266 a1a6db7b859b
parent 1264 49032c3d9007
child 1267 5a6527540e19
--- a/Makefile	Wed Feb 25 13:52:36 2015 +0200
+++ b/Makefile	Wed Feb 25 15:20:21 2015 +0200
@@ -89,9 +89,9 @@
   if [ -f ~/$$f ]; then [ -f $(emacsdir)/$$f ] && mv ~/$$f $(emacsdir)/$$f.1 || mv ~/$$f $(emacsdir); fi; \
   if [ -f $(mylispdir)/$$f ]; then [ -f $(emacsdir)/$$f ] && mv $(mylispdir)/$$f $(emacsdir)/$$f.2 || mv $(mylispdir)/$$f $(emacsdir); fi; \
 done; \
-for f in $(mylispdir)/.emacs*; do \
+for f in `find $(mylispdir) -maxdepth 1 -type f -name '.emacs?*'`; do \
   fn=$${f##*/}; \
-  if [ -f $$f ]; then [ -f $(emacsdir)/$$fn ] && mv $$f $(emacsdir)/$$fn.3 || mv $$f $(emacsdir); fi; \
+  [ -f $(emacsdir)/$$fn ] && mv $$f $(emacsdir)/$$fn.3 || mv $$f $(emacsdir); \
 done;
 
 .PHONY: install-all