* Assorted tweaks to activate the translations...
[citadel.git] / webcit / Makefile.in
1 # $Id$
2
3 AUTOCONF=@AUTOCONF@
4 CC=@CC@
5 CFLAGS=@CFLAGS@
6 DEFS=@DEFS@
7 INSTALL=@INSTALL@
8 LIBOBJS=@LIBOBJS@
9 LIBS=@LIBS@
10 LDFLAGS=@LDFLAGS@
11 SETUP_LIBS=@SETUP_LIBS@
12 PTHREAD_DEFS=@PTHREAD_DEFS@
13 srcdir=@srcdir@
14 prefix=@prefix@
15 top_builddir=`pwd`
16
17 LIB_SUBDIRS=
18 PROG_SUBDIRS=po
19 SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS) 
20
21 # End of configuration section
22
23 all: all-progs-recursive webserver setup
24
25
26 .SUFFIXES: .c .o
27
28 clean:
29         rm -f *.o webcit webserver
30
31 distclean: clean
32         rm -f Makefile config.cache config.log config.status\
33                 $(srcdir)/TAGS
34
35 setup: setup.o tools.o
36         $(CC) setup.o tools.o \
37         $(LIBOBJS) $(LIBS) $(LDFLAGS) $(SETUP_LIBS) -o setup
38
39 webserver: webserver.o context_loop.o tools.o ical_dezonify.o \
40         cookie_conversion.o locate_host.o floors.o summary.o \
41         webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \
42         roomops.o messages.o userlist.o paging.o sysmsgs.o useredit.o \
43         vcard.o vcard_edit.o preferences.o html2html.o listsub.o \
44         mime_parser.o graphics.o netconf.o siteconfig.o subst.o rss.o \
45         calendar.o calendar_tools.o calendar_view.o event.o \
46         availability.o iconbar.o crypto.o inetconf.o notes.o \
47         groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \
48         groupdav_options.o autocompletion.o \
49         groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \
50         $(LIBOBJS)
51         $(CC) webserver.o context_loop.o tools.o cookie_conversion.o \
52         webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
53         roomops.o messages.o userlist.o paging.o sysmsgs.o useredit.o \
54         locate_host.o siteconfig.o subst.o vcard.o vcard_edit.o floors.o \
55         mime_parser.o graphics.o netconf.o preferences.o html2html.o rss.o \
56         summary.o calendar.o calendar_tools.o calendar_view.o event.o \
57         availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \
58         groupdav_main.o groupdav_get.o groupdav_propfind.o groupdav_delete.o \
59         groupdav_options.o autocompletion.o \
60         groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o \
61         $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
62
63 .c.o:
64         $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"$(prefix)\" -DLOCALEDIR=\"$(prefix)/locale\" $<
65
66 Makefile: $(srcdir)/Makefile.in config.status
67         CONFIG_FILES="Makefile po/Makefile" CONFIG_HEADERS= $(SHELL) ./config.status
68
69 config.status: $(srcdir)/configure
70         $(SHELL) ./config.status --recheck
71
72 $(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/aclocal.m4
73         cd $(srcdir) && $(AUTOCONF)
74
75 install:
76         test -d $(root)$(prefix) || mkdir $(root)$(prefix)
77         test -d $(root)$(prefix)/static || mkdir $(root)$(prefix)/static
78         for i in `find tiny_mce -type d | grep -v .svn` \
79                 ; do \
80                 test -d $(root)$(prefix)/$$i || mkdir $(root)$(prefix)/$$i; \
81         done
82         for i in \
83                 webserver \
84                 setup \
85                 `find static -type f | grep -v .svn` \
86                 `find tiny_mce -type f | grep -v .svn` \
87                 ; do \
88                 $(INSTALL) $$i $(root)$(prefix)/$$i; \
89         done
90
91 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
92   mostlyclean-recursive realclean-recursive:
93         @for subdir in $(SUBDIRS); do \
94           if test -d $$subdir ; then \
95             target=`echo $@|$(SED) 's/-recursive//'`; \
96             echo making $$target in $$subdir; \
97             (cd $$subdir && $(MAKE) $$target) || exit 1; \
98           fi ; \
99         done
100
101 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
102   uninstall-progs-recursive:
103         @for subdir in $(PROG_SUBDIRS); do \
104           if test -d $$subdir ; then \
105             target=`echo $@|$(SED) 's/-progs-recursive//'`; \
106             echo making $$target in $$subdir; \
107             (cd $$subdir && $(MAKE) $$target) || exit 1; \
108           fi ; \
109         done
110
111 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
112   uninstall-libs-recursive install-shlibs-libs-recursive \
113   install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
114         @for subdir in $(LIB_SUBDIRS); do \
115           if test -d $$subdir ; then \
116             target=`echo $@|$(SED) 's/-libs-recursive//'`; \
117             echo making $$target in $$subdir; \
118             (cd $$subdir && $(MAKE) $$target) || exit 1; \
119           fi ; \
120         done
121