33 |
|
|
34 |
################################################################ |
################################################################ |
35 |
|
|
36 |
include ./common.Makefile |
include ./variables.Makefile |
37 |
|
|
38 |
# main target |
# main target |
39 |
############# |
############# |
41 |
NAME = libml |
NAME = libml |
42 |
|
|
43 |
DIRNAME = src |
DIRNAME = src |
44 |
|
DOCPATH = ../doc |
45 |
|
|
46 |
all: $(NAME).cma $(NAME).cmxa |
all: $(NAME).cma $(NAME).cmxa |
47 |
|
|
96 |
|
|
97 |
install: |
install: |
98 |
@echo " + installing LibML ..." |
@echo " + installing LibML ..." |
99 |
|
@echo " + running ocamlfind library installation ..." |
100 |
files=$$( \ |
files=$$( \ |
101 |
for f in $(ALL_CMI_INSTALL) $(ALL_MLI_INSTALL) $(ALL_CMX_INSTALL) $(NAME).cma $(NAME).cmxa $(NAME).a ./META; do \ |
for f in $(ALL_CMI_INSTALL) $(ALL_MLI_INSTALL) $(ALL_CMX_INSTALL) $(NAME).cma $(NAME).cmxa $(NAME).a ./META; do \ |
102 |
if [ -f "$$f" ]; then echo $$f; fi; \ |
if [ -f "$$f" ]; then echo $$f; fi; \ |
103 |
done; \ |
done; \ |
104 |
) && \ |
) && \ |
105 |
$(OCAMLFIND) install $(NAME) $$files |
$(OCAMLFIND) install $(NAME) $$files |
106 |
|
@make -C $(DOCPATH) $@ |
107 |
|
|
108 |
uninstall: |
uninstall: |
109 |
@echo " + uninstalling LibML ..." |
@echo " + uninstalling LibML ..." |
110 |
|
@echo " + running ocamlfind library uninstallation ..." |
111 |
$(OCAMLFIND) remove $(NAME) |
$(OCAMLFIND) remove $(NAME) |
112 |
|
@make -C $(DOCPATH) $@ |
113 |
|
|
114 |
# documentation |
# documentation |
115 |
############### |
############### |
180 |
|
|
181 |
dist-clean distclean: clean clean-doc |
dist-clean distclean: clean clean-doc |
182 |
@echo " + making $@ in $(DIRNAME) ..." |
@echo " + making $@ in $(DIRNAME) ..." |
183 |
@$(RM) config.cache config.log config.status .depend common.Makefile \ |
@$(RM) config.cache config.log config.status .depend variables.Makefile \ |
184 |
configure */Makefile $(NAME).{cma,cmxa,a} |
configure */Makefile $(NAME).{cma,cmxa,a} |
185 |
|
|
186 |
clean-cvs: clean-cvs-default |
clean-cvs: clean-cvs-default |
205 |
@echo " | LibML test suite sucessfully finished." |
@echo " | LibML test suite sucessfully finished." |
206 |
@echo " \\" |
@echo " \\" |
207 |
|
|
|
# common.Makefile is rebuilt whenever common.Makefile.in or configure.in |
|
|
# is modified |
|
|
######################################################################## |
|
208 |
|
|
209 |
common.Makefile: common.Makefile.in config.status |
include ./commonrules.Makefile |
|
./config.status |
|
|
|
|
|
config.status: configure |
|
|
./config.status --recheck |
|
|
|
|
|
configure: configure.in |
|
|
autoconf |
|