5672f1319996785e8a29e7988f9ff004b2c5e4fb
[citadel.git] / webcit / Makefile.am
1 PACKAGE = @PACKAGE@
2 VERSION = @VERSION@
3
4 SUBDIRS= po src 
5
6 EXTRA_DIST= autoconf/config.rpath autoconf/mkinstalldirs  m4/ChangeLog tiny_mce_DATA static_DATA
7 ACLOCAL_AMFLAGS = -I m4
8
9 DISTFILES=ABOUT_NLS
10 # usual unix way would be here: $(datadir)/$(PACKAGE)
11 #STATIC_DIR=@STATIC_DIR@
12
13 DIRS=tiny_mce static
14
15
16
17
18 install-data-local:
19                 @$(NORMAL_INSTALL); \
20                 if test -n "@STATIC_DIR@" ; then \
21                         export STATIC_DIR=@STATIC_DIR@; \
22                 else \
23                         export STATIC_DIR=$(prefix); \
24                 fi; \
25                 for dir in $(DIRS); do \
26                         $(mkinstalldirs) $(DESTDIR)/$$STATIC_DIR/$$dir; \
27                         for subdir in `find $$dir -type d |grep -v .svn`; do \
28                                 $(mkinstalldirs) $(DESTDIR)/$$STATIC_DIR/$$subdir; \
29                                         for file in $(srcdir)/$$subdir/*; do \
30                                                 if test -f "$$file" ; then \
31                                                         $(INSTALL_DATA) $$file $(DESTDIR)$$STATIC_DIR/$$subdir; \
32                                                 fi \
33                                         done \
34                         done \
35                 done