X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2FMakefile.in;h=6b2a321b9be78e6a9eb4f9ba5f68b9e3e4a7c5c3;hb=4bb58f061555ed9770803727c1408ede497deb32;hp=ea2d67378f17c97afc341d33a96819e27afff106;hpb=70bfefce791a385c9c4c770be3b058f2de3f0e95;p=citadel.git diff --git a/webcit/Makefile.in b/webcit/Makefile.in index ea2d67378..6b2a321b9 100644 --- a/webcit/Makefile.in +++ b/webcit/Makefile.in @@ -14,20 +14,21 @@ PTHREAD_DEFS=@PTHREAD_DEFS@ srcdir=@srcdir@ prefix=@prefix@ top_builddir=`pwd` - LIB_SUBDIRS= PROG_SUBDIRS=@PROG_SUBDIRS@ SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS) +LOCALEDIR=@LOCALEDIR@ +WWWDIR=@WWWDIR@ # End of configuration section all: all-progs-recursive webserver setup -.SUFFIXES: .c .o +.SUFFIXES: .cpp .c .o clean: - rm -f *.o webcit webserver + rm -f *.o webcit webserver setup rm -fr locale/* distclean: clean @@ -35,66 +36,92 @@ distclean: clean po/Makefile \ $(srcdir)/TAGS -setup: setup.o tools.o - $(CC) setup.o tools.o \ +setup: setup.o + $(CC) setup.o \ $(LIBOBJS) $(LIBS) $(LDFLAGS) $(SETUP_LIBS) -o setup -webserver: webserver.o context_loop.o tools.o ical_dezonify.o \ +webserver: webserver.o context_loop.o ical_dezonify.o \ cookie_conversion.o locate_host.o floors.o summary.o \ webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \ roomops.o messages.o userlist.o paging.o sysmsgs.o useredit.o \ - vcard.o vcard_edit.o preferences.o html2html.o listsub.o \ - mime_parser.o graphics.o netconf.o siteconfig.o subst.o rss.o \ - calendar.o calendar_tools.o calendar_view.o event.o \ - availability.o iconbar.o crypto.o inetconf.o notes.o \ + vcard_edit.o preferences.o html2html.o listsub.o \ + graphics.o netconf.o siteconfig.o subst.o rss.o \ + calendar.o calendar_tools.o calendar_view.o event.o smtpqueue.o \ + availability.o iconbar.o crypto.o inetconf.o notes.o wiki.o \ groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \ - groupdav_options.o autocompletion.o gettext.o tabs.o \ + groupdav_options.o autocompletion.o gettext.o tabs.o sieve.o \ groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \ + downloads.o addressbook_popup.o pushemail.o sysdep.o \ $(LIBOBJS) - $(CC) webserver.o context_loop.o tools.o cookie_conversion.o \ + $(CC) webserver.o context_loop.o cookie_conversion.o \ webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \ roomops.o messages.o userlist.o paging.o sysmsgs.o useredit.o \ - locate_host.o siteconfig.o subst.o vcard.o vcard_edit.o floors.o \ - mime_parser.o graphics.o netconf.o preferences.o html2html.o rss.o \ - summary.o calendar.o calendar_tools.o calendar_view.o event.o \ + locate_host.o siteconfig.o subst.o vcard_edit.o floors.o \ + graphics.o netconf.o preferences.o html2html.o rss.o \ + summary.o calendar.o calendar_tools.o calendar_view.o event.o wiki.o \ availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \ groupdav_main.o groupdav_get.o groupdav_propfind.o groupdav_delete.o \ - groupdav_options.o autocompletion.o tabs.o \ + groupdav_options.o autocompletion.o tabs.o smtpqueue.o sieve.o \ groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o \ - gettext.o \ + gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o \ $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver .c.o: - $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"$(prefix)\" -DLOCALEDIR=\"$(prefix)/locale\" $< + $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $< + +.cpp.o: + $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $< Makefile: $(srcdir)/Makefile.in config.status - CONFIG_FILES="Makefile" CONFIG_HEADERS= $(SHELL) ./config.status + CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status config.status: $(srcdir)/configure $(SHELL) ./config.status --recheck -$(srcdir)/configure: $(srcdir)/configure.in +$(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4 cd $(srcdir) && $(AUTOCONF) -install: - test -d $(root)$(prefix) || mkdir $(root)$(prefix) - test -d $(root)$(prefix)/static || mkdir $(root)$(prefix)/static - for i in `find tiny_mce -type d | grep -v .svn` \ - ; do \ - test -d $(root)$(prefix)/$$i || mkdir $(root)$(prefix)/$$i; \ +$(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4 + cd $(srcdir) && $(ACLOCAL) + +install: install-bin install-setupbin install-wwwdata install-tinymce install-locale + +install-bin: + test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix) + $(INSTALL) webserver $(DESTDIR)$(prefix)/webserver + + +install-setupbin: install-bin + $(INSTALL) setup $(DESTDIR)$(prefix)/setup + + +install-wwwdata: + test -d $(DESTDIR)$(WWWDIR)/static.local || mkdir -p $(DESTDIR)$(WWWDIR)/static.local + test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static + for i in `find static -type f | grep -v .svn`; do \ + $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \ done - for i in `find locale -type d | grep -v .svn` \ + +install-tinymce: + test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static + for i in `find tiny_mce -type d | grep -v .svn` \ ; do \ - test -d $(root)$(prefix)/$$i || mkdir $(root)$(prefix)/$$i; \ + test -d $(DESTDIR)$(WWWDIR)/$$i || mkdir -p $(DESTDIR)$(WWWDIR)/$$i; \ done for i in \ - webserver \ - setup \ - `find static -type f | grep -v .svn` \ `find tiny_mce -type f | grep -v .svn` \ - `find locale -type f | grep -v .svn` \ ; do \ - $(INSTALL) $$i $(root)$(prefix)/$$i; \ + $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \ + done + +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 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \ @@ -107,24 +134,24 @@ TAGS clean-recursive distclean-recursive depend-recursive check-recursive \ fi ; \ done -all-progs-recursive install-progs-recursive install-strip-progs-recursive \ - uninstall-progs-recursive: - @for subdir in $(PROG_SUBDIRS); do \ - if test -d $$subdir ; then \ - target=`echo $@|$(SED) 's/-progs-recursive//'`; \ - echo making $$target in $$subdir; \ - (cd $$subdir && $(MAKE) $$target) || exit 1; \ - fi ; \ - done +all-progs-recursive install-progs-recursive install-strip-progs-recursive \ + uninstall-progs-recursive: +# @for subdir in $(PROG_SUBDIRS); do \ +# if test -d $$subdir ; then \ +# target=`echo $@|$(SED) 's/-progs-recursive//'`; \ +# echo making $$target in $$subdir; \ +# (cd $$subdir && $(MAKE) $$target) || exit 1; \ +# fi ; \ +# done all-libs-recursive install-libs-recursive install-strip-libs-recursive \ uninstall-libs-recursive install-shlibs-libs-recursive \ install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive: - @for subdir in $(LIB_SUBDIRS); do \ - if test -d $$subdir ; then \ - target=`echo $@|$(SED) 's/-libs-recursive//'`; \ - echo making $$target in $$subdir; \ - (cd $$subdir && $(MAKE) $$target) || exit 1; \ - fi ; \ - done +# @for subdir in $(LIB_SUBDIRS); do \ +# if test -d $$subdir ; then \ +# target=`echo $@|$(SED) 's/-libs-recursive//'`; \ +# echo making $$target in $$subdir; \ +# (cd $$subdir && $(MAKE) $$target) || exit 1; \ +# fi ; \ +# done