1 # Makefile for COCANWIKI.
2 # $Id: Makefile,v 1.20 2004/09/22 12:04:28 rich Exp $
4 include ../Makefile.config
7 OCAMLCFLAGS := -w s -I +apache -I +pcre -I +dbi -I +extlib
12 cocanwiki_version.cmo \
14 cocanwiki_strings.cmo \
15 cocanwiki_images.cmo \
16 cocanwiki_template.cmo \
20 cocanwiki_emailnotify.cmo \
24 OBJS := 00-TEMPLATE.cmo \
31 create_contact_form.cmo \
33 create_user_form.cmo \
35 delete_contact_form.cmo \
37 delete_file_form.cmo \
39 delete_image_form.cmo \
41 delete_user_form.cmo \
45 edit_contact_form.cmo \
47 edit_host_css_form.cmo \
48 edit_host_settings.cmo \
49 edit_host_settings_form.cmo \
51 edit_page_css_form.cmo \
58 forgot_password_form.cmo \
77 send_feedback_form.cmo \
79 set_password_form.cmo \
83 undelete_file_form.cmo \
85 undelete_image_form.cmo \
87 upload_file_form.cmo \
89 upload_image_form.cmo \
94 admin/create_host.cmo \
95 admin/create_host_form.cmo \
96 admin/edit_emails.cmo \
97 admin/edit_emails_form.cmo \
98 admin/edit_host_css.cmo \
99 admin/edit_host_css_form.cmo \
100 admin/edit_hostnames.cmo \
101 admin/edit_hostnames_form.cmo \
104 INSTDIR := ../html/_bin
106 all: cocanwiki.cma $(OBJS) $(ADMIN_OBJS)
108 cocanwiki.cma: $(LIB_OBJS)
109 $(OCAMLC) $(OCAMLCFLAGS) -a -o $@ $^
111 cocanwiki_version.ml: cocanwiki_version.ml.in ../Makefile.config
112 $(CPP) -P -DPACKAGE="$(PACKAGE)" -DVERSION="$(VERSION)" $< > $@
115 rm -f *~ *.bak core *.cmi *.cmo *.cma cocanwiki_version.ml
116 rm -f admin/*~ admin/*.bak admin/core admin/*.cmi admin/*.cmo
119 install -d -m 0755 $(INSTDIR)
120 install -c -m 0555 cocanwiki.cma $(OBJS) $(INSTDIR)
122 install -d -m 0755 $(INSTDIR)/admin
123 install -c -m 0555 $(ADMIN_OBJS) $(INSTDIR)/admin
126 $(OCAMLC) $(OCAMLCFLAGS) -c $<
129 $(OCAMLC) $(OCAMLCFLAGS) -c $<
136 ocamldep *.mli *.ml admin/*.ml > $@
138 ifeq ($(wildcard .depend),.depend)
142 .SUFFIXES: .ml .mli .cmi .cmo