]> code.citadel.org Git - citadel.git/blobdiff - webcit/Makefile.in
* move templates to static/t/ ; made make install target respect this
[citadel.git] / webcit / Makefile.in
index abb8efbb620d2c68ef381487593e16f4bbb5a76d..0b607b909ed9181d0da575aeefa837e3f37c11d4 100644 (file)
@@ -22,13 +22,13 @@ WWWDIR=@WWWDIR@
 
 # End of configuration section
 
-all: all-progs-recursive webserver setup
+all: all-progs-recursive webcit setup
 
 
 .SUFFIXES: .cpp .c .o
 
 clean:
-       rm -f *.o webcit webserver setup
+       rm -f *.o webcit webcit setup
        rm -fr locale/*
 
 distclean: clean
@@ -37,10 +37,9 @@ distclean: clean
                $(srcdir)/TAGS
 
 setup: setup.o
-       $(CC) setup.o \
-       $(LIBOBJS) $(LIBS) $(LDFLAGS) $(SETUP_LIBS) -o setup
+       $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) $(SETUP_LIBS) setup.o -o setup
 
-webserver: webserver.o context_loop.o ical_dezonify.o \
+webcit: 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 \
@@ -51,20 +50,23 @@ webserver: webserver.o context_loop.o ical_dezonify.o \
        groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.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 html.o\
+       downloads.o addressbook_popup.o pushemail.o sysdep.o openid.o \
+       modules_init.o \
        $(LIBOBJS)
-       $(CC) webserver.o context_loop.o cookie_conversion.o \
+       $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
+       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_edit.o floors.o \
-       graphics.o netconf.o preferences.o html2html.o rss.o \
+       graphics.o netconf.o preferences.o html2html.o rss.o openid.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 smtpqueue.o sieve.o \
-       groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o \
-       gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o html.o \
-       $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
+       groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o modules_init.o \
+       gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o \
+       -o webcit \
+       $(LIBS)
 
 .c.o:
        $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) $<
@@ -88,7 +90,11 @@ install:  install-bin install-setupbin install-wwwdata install-tinymce install-l
 
 install-bin:
        test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
-       $(INSTALL) webserver $(DESTDIR)$(prefix)/webserver
+       $(INSTALL) webcit $(DESTDIR)$(prefix)/webcit
+       if test -f $(DESTDIR)$(prefix)/webserver; then \
+               rm -f $(DESTDIR)$(prefix)/webserver; \
+               ln -s $(DESTDIR)$(prefix)/webcit $(DESTDIR)$(prefix)/webserver; \
+       fi
 
 
 install-setupbin: install-bin
@@ -96,8 +102,8 @@ install-setupbin: install-bin
 
 
 install-wwwdata:
-       test -d $(DESTDIR)$(WWWDIR)/static.local || mkdir -p $(DESTDIR)$(WWWDIR)/static.local
-       test -d $(DESTDIR)$(WWWDIR)/static || mkdir -p $(DESTDIR)$(WWWDIR)/static
+       test -d $(DESTDIR)$(WWWDIR)/static.local/t || mkdir -p $(DESTDIR)$(WWWDIR)/static.local/t
+       test -d $(DESTDIR)$(WWWDIR)/static/t || mkdir -p $(DESTDIR)$(WWWDIR)/static/t
        for i in `find static -type f | grep -v .svn`; do \
                $(INSTALL) $$i $(DESTDIR)$(WWWDIR)/$$i; \
        done