X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2FMakefile.am;h=8f3d13ad5c245c42251fb9da5a3003bcbbe309d5;hb=9f381d88bba534f250de670bcb0e49559bdf5821;hp=12d055012bf3bffc7fd9cd20128003d945df36c6;hpb=76e6bee651c692d8f8917b566fcf1bc9c320f122;p=citadel.git diff --git a/webcit/Makefile.am b/webcit/Makefile.am index 12d055012..8f3d13ad5 100644 --- a/webcit/Makefile.am +++ b/webcit/Makefile.am @@ -10,7 +10,8 @@ DISTFILES=ABOUT_NLS # usual unix way would be here: $(datadir)/$(PACKAGE) #STATIC_DIR=@STATIC_DIR@ -DIRS=tiny_mce static +DIRS= static +EDITOR_DIRS=tiny_mce @@ -29,3 +30,16 @@ install-data-local: done \ done \ done + + export STATIC_DIR=@editor@; \ + for dir in $(EDITOR_DIRS); do \ + $(mkinstalldirs) $(DESTDIR)/$$STATIC_DIR/$$dir; \ + for subdir in `find $$dir -type d |grep -v .svn`; do \ + $(mkinstalldirs) $(DESTDIR)/$$STATIC_DIR/$$subdir; \ + for file in $(srcdir)/$$subdir/*; do \ + if test -f "$$file" ; then \ + $(INSTALL_DATA) $$file $(DESTDIR)$$STATIC_DIR/$$subdir; \ + fi \ + done \ + done \ + done