From 17fde1b00c897b3896738e2f9dd2452ddb1dd0fb Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 29 Apr 2008 20:25:05 +0000 Subject: [PATCH] Replaced 'install -D' by 'mkdir -p' (flag not recognized on some systems) SVN revision: 2106 --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4f27a16a..22f19b0c 100644 --- a/Makefile +++ b/Makefile @@ -134,9 +134,10 @@ install: $(EXECS) @echo "Installing FCKeditor to $(ELOGDIR)/scripts/fckeditor" @unzip -q -o scripts/fckeditor.zip -d $(ELOGDIR)/scripts/ - @$(INSTALL) -D -v -m 0644 scripts/fckeditor/fckelog.js $(ELOGDIR)/scripts/fckeditor/fckelog.js - @$(INSTALL) -D -v -m 0644 scripts/fckeditor/editor/plugins/elog/fckplugin.js $(ELOGDIR)/scripts/fckeditor/editor/plugins/elog/fckplugin.js - @$(INSTALL) -D -v -m 0644 scripts/fckeditor/editor/plugins/elog/inserttime.gif $(ELOGDIR)/scripts/fckeditor/editor/plugins/elog/inserttime.gif + @$(INSTALL) -v -m 0644 scripts/fckeditor/fckelog.js $(ELOGDIR)/scripts/fckeditor/fckelog.js + @mkdir -p -m 0644 $(ELOGDIR)/scripts/fckeditor/editor/plugins/elog + @$(INSTALL) -v -m 0644 scripts/fckeditor/editor/plugins/elog/fckplugin.js $(ELOGDIR)/scripts/fckeditor/editor/plugins/elog/fckplugin.js + @$(INSTALL) -v -m 0644 scripts/fckeditor/editor/plugins/elog/inserttime.gif $(ELOGDIR)/scripts/fckeditor/editor/plugins/elog/inserttime.gif @echo "Installing resources to $(ELOGDIR)/resources" @$(INSTALL) -m 0644 resources/* $(ELOGDIR)/resources/ @@ -146,7 +147,7 @@ install: $(EXECS) @$(INSTALL) -m 0644 themes/default/icons/* $(ELOGDIR)/themes/default/icons/ @for file in `find themes/default -type f | grep -v .svn` ; \ do \ - $(INSTALL) -D -m 0644 $$file $(ELOGDIR)/themes/default/`basename $$file` ;\ + $(INSTALL) -m 0644 $$file $(ELOGDIR)/themes/default/`basename $$file` ;\ done @echo "Installing example logbook to $(ELOGDIR)/logbooks/demo" @@ -155,7 +156,7 @@ install: $(EXECS) fi @sed "s#\@PREFIX\@#$(PREFIX)#g" elogd.init_template > elogd.init - @$(INSTALL) -v -D -m 0755 elogd.init $(RCDIR)/elogd + @$(INSTALL) -v -m 0755 elogd.init $(RCDIR)/elogd @if [ ! -f $(ELOGDIR)/elogd.cfg ]; then \ $(INSTALL) -v -m 644 elogd.cfg $(ELOGDIR)/elogd.cfg ; \