]> code.citadel.org Git - citadel.git/blobdiff - citadel/Makefile.in
* load the url shortener links from a config file
[citadel.git] / citadel / Makefile.in
index 5c42a103287f876ed1477b466951a28953df2b75..f1c8736740f187eb74a9bfa50ee57f4a180a94c6 100644 (file)
@@ -8,8 +8,6 @@
 # 2. Send e-mail to ajc@uncensored.citadel.org and let me know what you
 #    did, so any necessary changes can be put into the next release.
 #
-# $Id$
-#
 ########################################################################
 
 prefix=@prefix@
@@ -68,6 +66,7 @@ SERVER_LDFLAGS=@SERVER_LDFLAGS@
 SERVER_LIBS=@SERVER_LIBS@
 SETUP_LIBS=@SETUP_LIBS@
 YACC=@YACC@
+LOCALEDIR=@LOCALEDIR@
 
 # End configuration section
 
@@ -105,6 +104,7 @@ mkdir-init:
                (mkdir -p user_modules/$$d ) ; \
        done
        mkdir -p utils utillib textclient
+       mkdir locale
 
 svn_revision.c: ${SOURCES}
        $(srcdir)/scripts/mk_svn_revision.sh
@@ -226,13 +226,23 @@ msgform$(EXEEXT): utils/msgform.o
 
 .PHONY: install-data install-doc install-exec clean cleaner distclean
 
-install: install-exec install-data install-doc
+install-locale:
+       cd po; $(MAKE)
+       for i in `find locale -type d | grep -v .svn` \
+               ; do \
+               test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
+       done
+       for i in `find locale -type f | grep -v .svn`; do \
+               $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
+       done
+
+install: install-exec install-data install-doc install-locale
        @echo 
        @echo Installation is complete.
        @echo Now go to your Citadel directory and run 'setup'.
        @echo 
 
-install-new: install-exec-new install-data-new install-doc-new
+install-new: install-exec-new install-data-new install-doc-new install-locale
        @echo 
        @echo Installation is complete.
        @echo Now go to your Citadel directory and run 'setup'.
@@ -249,7 +259,7 @@ install-data:
                 network/systems; do \
                $(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/$$i; \
        done
-       @for i in funambol_newmail_soap.xml notify_about_newmail.js citadel.rc public_clients \
+       @for i in funambol_newmail_soap.xml notify_about_newmail.js citadel.rc public_clients citadel_urlshorteners.rc \
                 `find $(srcdir)/help $(srcdir)/messages $(srcdir)/network -type f | grep -v .svn`; do \
                echo $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
                $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
@@ -265,6 +275,7 @@ install-data-new:
        done
        $(srcdir)/mkinstalldirs $(DESTDIR)$(ETC_DIR)/
        $(INSTALL_DATA) $(srcdir)/public_clients $(DESTDIR)$(ETC_DIR)/public_clients
+       $(INSTALL_DATA) $(srcdir)/citadel_urlshorteners.rc $(DESTDIR)$(ETC_DIR)/citadel_urlshorteners.rc
        $(INSTALL_DATA) $(srcdir)/citadel.rc $(DESTDIR)$(ETC_DIR)/citadel.rc
        $(INSTALL_DATA) $(srcdir)/network/mail.aliases $(DESTDIR)$(ETC_DIR)/mail.aliases$
 
@@ -383,6 +394,7 @@ install-exec-new: all
        done
 
 clean:
+       rm -fr locale/*
        rm -f *.o 
        rm -f utils/*.o ;\
        rm -f utillib/*.o ;\
@@ -404,6 +416,7 @@ cleaner: clean
 
 distclean: cleaner
        find . -name '*~' -o -name '.#*' | xargs rm -f
+       rm -f po/Makefile 
        rm -f Makefile sysdep.h config.cache config.log config.status *.d 
        rm -f utils/*.d ;
        rm -f utillib/*.d ;