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